[PATCH 5.10 034/545] thermal: sysfs: Fix cooling_device_stats_setup() error code path