[PATCH 4.9 122/310] thermal: power_allocator: fix one race condition issue for thermal_instances list