msm: thermal: improve robustness of the thermal throttle routine.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Merge remote-tracking branch 'upstream/android-msm-hammerhead-3.4-kk-r1'