[PATCH 5.12 113/384] resource: Prevent irqresource_disabled() from erasing flags