Fix hpet_(un)register_irq_handler() for emulation