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

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