Fix a warning under MSVC

Fix a warning under MSVC when BOOST_NO_STD_LOCALE is defined.