LUCENE-6978: Refactor several code places that lookup locales by string name to use BCP47 locale tag instead