STABILITY OF ROTATING MAGNETIZED JETS IN THE SOLAR ATMOSPHERE. I. KELVIN–HELMHOLTZ INSTABILITY