[PATCH 5.2 056/313] x86/apic: Make apic_pending_intr_clear() more robust