vn_lock_pair(): allow to request shared locking
(cherry picked from commit bb24eaea498268572aa140c35c02e02884cdf930)