lib/util: Add back control of mmap and hash size in tdb for top level build