Hysteresis in the Lorenz equations