isl_map_transitive_closure: reformulate exactness test in terms of extended paths