LMDB doesn't support many concurrent read-only transactions, so this preallocates one read-only transaction and reuses it.  It's very important that iterations are considered invalid after a commit has been performed.
Merge pull request #1319 from kmatzen/lmdb_iter_fix

LMDB read-only transaction limit fix