tty: add a helper for setting termios data from kernel side