To lock a folder, right-click on that folder and select Properties. Now navigate to Security tab, and clickEdit as shown in the screenshot below.
Read this post on computertrackers.blogspot.com