[PATCH 5.4 025/389] thermal: sysfs: Fix cooling_device_stats_setup() error code path