HHH-8895 Filter for MappedSuperClass produces wrong sql

https://hibernate.atlassian.net/browse/HHH-8895

already applied to 4.3 and master, it needs to be applied to 4.2