std::thread is movable, no need to use unique_ptr.