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