Saving lockfile