isl_map_transitive_closure: extract out construction of extended path