drivers: tty: tty_ioctl: fix timeout calculation in tty_wait_until_sent().

(cherry picked from commit 5722f96e1140ab40a979e897f454861905306824)