genirq/irq_sim: Shrink code by using <linux/cleanup.h> helpers