[STABLE][PATCH 4.19] thermal/core/fair share: Lock the thermal zone while looping over instances