Sync LMDB codebase.
Fix missing release of ff_pkt.