create a lock file