HHH-8406 - fix for EntityManagerFactoryRegistry not being thread safe