intel/perf: move close_perf into perf