x86/irq: Make run_on_irqstack_cond() typesafe