Remove lockfile code