[PATCH 5.4 130/141] thermal/core/fair share: Lock the thermal zone while looping over instances