[LMDB] inconsistent mutex behavior and problems for M:N threading