genirq: add threaded interrupt handler support