8166890: JShell: locks forever when input is piped StopDetectingInputStream.setState must not override the state if the stream is closed. Reviewed-by: rfield, shinyafox