Fixed the lockfile not being created.