[PATCH 5.19 0055/1157] thermal: sysfs: Fix cooling_device_stats_setup() error code path