kstat: modify kstat_irqs_legacy to be variable sized