namedb/lmdb: make sure the freelist can always hold db tree index
Disclaimer: It's been a WIP for so long time that I have forgotten about this.
The size-limited LMDB instance may be filled completely to a point where you cannot delete it, as there won't be any free pages left. This code makes sure there are always enough free pages to delete the complete DB.