Fix the problem PR31516 with setting locale on Windows by wrapping _locale_t with a pointer-like class.
Reduces 74 test failures in std/localization test suite to 47 test failures (on llvm clang, Visual Studio 2015). Number of test failures doesn't depend on the platform (x86 or x64).