[v9_11] Fix locking for LMDB 0.9.26

Michał Kępień requested to merge 1976-fix-locking-for-lmdb-0.9.26-v9_11 into v9_11

Merge request reports