Merge "Migrate pthread to std::thread" into main