[PATCH 4.14 008/138] thermal: power_allocator: fix one race condition issue for thermal_instances list