HHH-8406 - fix for EntityManagerFactoryRegistry not being thread safe (any feedback on this change?)