Add lock file.