How to lock a file Box