[PATCH AUTOSEL 6.18-5.10] powercap: fix race condition in register_control_type()