At least under Linux it's common not to have all the supported locales installed, so check that a locale is available to avoid test failures if it isn't. We still rely on all the locales we use being available under MSW and macOS, as this should be always the case.