perf_counter, x86: Clean up hw_cache_event ids copies