namedb tests: fix crash when LMDB is not compiled in