x86/irq: Reorganize the search in assign_irq_vector