To unlock all files in a folder and all its subfolders, open a terminal window and type (in OS X and most Unix systems I believe):
sudo chown -R yourusername /path/to/folder
It is good to do this to a folder of photographs that you are about to backup so that you avoid the backup failing half-way through when the backup script finds a locked file.