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