Flint’s water crisis wound up being a crash course in how residents have learned to band together in a catastrophe.