[PATCH 5.11 106/342] resource: Prevent irqresource_disabled() from erasing flags