Refactor locale static members to avoid MSVC bug