Generalized global symmetries and dissipative magnetohydrodynamics