Add file lock/unlock