[PATCH 4.19 040/211] x86/apic: Make apic_pending_intr_clear() more robust