ldb: fix a warning by converting from TDB_DATA to struct ldb_val