fix ThreadPool UT
fix a failing assert in boost::conditional on exit