x86: avoid redundant loop in io_apic_level_ack_pending()