perf: Fix and clean up initialization of pmu::event_idx