[PATCH AUTOSEL for 4.9 124/281] thermal: power_allocator: fix one race condition issue for thermal_instances list