add file lock for sync