x86/apic: Do not clear nr_irqs_gsi if no legacy irqs