Lock folder and all its contents such that it is temporarily read-only
Open Terminal
cd to/folder
chmod -R a-w .


To undo run chmod -R u+w . instead. 

The first command recursively removes wrote access from all users, the second gives write access to the current user (because that‘s what is the default anyway).