study boost::thread and lock