fix SQL generation on table lock hint capable platforms
Merge pull request #925 from deeky666/DDC-2310-2.4

[DDC-2310] [DDC-2675] [2.4] Fix SQL generation on table lock hint capable platforms