isl_local_space_substitute_equalities: avoid writing to shared matrix