thermal: sysfs: Fix cooling_device_stats_setup() error code path