FX-236 - fixed std::thread spinlock