x86, ioapic: Introduce for_each_irq_pin() helper