[PATCH 6.2 0304/1001] tools/lib/thermal: Fix thermal_sampling_exit()