[PATCH openEuler-1.0-LTS 1/2] ACPI: battery: Simplify battery hook locking