HHH-9234 : Test  failure (testNaturalIdChangedWhileAttached) on SAP/SYBASE ASE

(cherry picked from commit 257efd10254b40a41016ec29d4ee2e90bf6c4d87)
HHH-9106 : (corrected test case to work on MySQL)

(cherry picked from commit 3a8041953d950db15513cecc36db38ee286c8a30)
HHH-9090 - HQL: parser is trying to reuse parent implied join for subquery

(cherry picked from commit 133f0825a3e97b123b3fb88f7971ced6e20ef600)
test wip