[PATCH v8] tty: fix hang on tty device with no_room set