fix SQL generation on table lock hint capable platforms