thermal: devfreq_cooling: use a copy of device status