Pam Anderson claims Tim Allen flashed her on-set in memoir