[PATCH 4.19 017/287] thermal: sysfs: Fix cooling_device_stats_setup() error code path