[PATCH 6.1 241/885] tools/lib/thermal: Fix thermal_sampling_exit()