[PATCH 5.17 420/772] thermal/core: Fix memory leak in __thermal_cooling_device_register()