Hysteresis in a quantized superfluid ‘atomtronic’ circuit