HHH-8491 Improved implementation for locale string parsing

Conflicts:
	hibernate-core/src/main/java/org/hibernate/type/descriptor/java/LocaleTypeDescriptor.java
HHH-8491 formatting and improved readability