ldb_tdb: Ensure we can not commit an index that is corrupt due to partial re-index