thermal/core: Create a helper __thermal_cdev_update() without a lock