Add support for LOCK IN SHARE MODE and FOR UPDATE