HHH-7714: Add support for EntityMode.MAP to JPA Criteria API

Fix for HHH-7714, correctly integrated to 4.1 branch. 

Allows full JPA criteria queries with non-class-based models.