To lock or unlock a folder, a user shall have OWNER permissions. For more permissions details see 13. Permissions.
If you want to save your folder from the changes, you may lock it. Other users won't be able to make any changes in a locked folder and its children.
To lock a folder the following steps shall be performed: