PM: core: keep irq flags in device_pm_check_callbacks()