Added lock file to sync script.