Adding a lock file.