Use std:: not boost:: thread handling classes

Given that C++11 now has a full set of thread safety and thread classes it is more portable to use those then to use the boost equivalent.

The static analyzer knows about std::mutex but not boost::mutex. Instead of changing the static analyzer I figured it was better to 'modernize' the code.