Function syncLockfile