ldb_wrap.c: fix TDB2-incompatible API usage.