boost::thread and detaching