[PATCH 6.1 0751/1146] thermal/of: Fix memory leak on thermal_of_zone_register() failure