Hysteresis-like effects in gyrotron oscillators