x86: ioapic: Convert mask to new irq_chip function