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

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Merge https://github.com/franciscofranco/hammerhead into android-msm-hammerhead-3.4-kitkat-mr1