The DSA’s primary sweep last week served as a needed reckoning for the city’s sclerotic party machine.