x86: io-apic - declare irq_cfg_lock for SPARSE_IRQ only