This makes it possible to query the status of a locale in a test. This
allows to use a locale conditionally instead of disabling an entire test
when a locale is missing.
The change is only applied to tests that were disabled in
https://reviews.llvm.org/rGd819703410c2362cbafb60117dab45b182d8b13d
Debug to validate the changes work locally.