Attempt to fix spurious travis failures
Guarantee C locale

*  Remove all calls to setlocale to ensure that the global
   locale is always C.

*  Also replace beast::SystemStats::getNumCpus() with
   std::thread::hardware_concurrency()
Gracefully cast from std::thread::hardware_concurrency
Silence clang warnings