HHH-8647 - hibernate.cache.use_reference_entries + queries

Conflicts:
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/ejb3configuration/PersisterClassProviderTest.java