commit_lock_file(): inline temporary variable