DataTab.finalize_states: pass segdb_error properly