lib/ldb: Use tdb_exists() rather than tdb_fetch()/talloc_free()