create lock file if it does not exist