[PATCH openEuler-1.0-LTS] ACPI: battery: Fix possible crash when unregistering a battery hook