perf_counter: x86: Robustify interrupt handling