HHH-8756 relaxed validation on non select queries when lock mode is set ...

...to NONE

Fixes HHH-8756