perf_counter, x86: Fix/improve apic fallback