s4-ldb: fixed tdb error handling in ldb_index.c