[PATCH openEuler-22.03-LTS-SP1 2/2] ACPI: battery: Fix possible crash when unregistering a battery hook