Update lmdb-semantics.md

Some typos, and a bit of dbi cleanup cruft.
Merge pull request #2 from hyc/patch-2

Update lmdb-semantics.md