[openEuler-5.10 030/496] thermal: sysfs: Fix cooling_device_stats_setup() error code path