[v9_16] Fix locking for LMDB 0.9.26

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

Merge request reports