[PATCH 5.15 578/691] ACPI: battery: Fix possible crash when unregistering a battery hook