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