[PATCH V4 01/17] thermal: cpu_cooling: Avoid accessing potentially freed structures