x86, x2apic: fix lock ordering during IRQ migration