tty_ioctl: fix the baud_table check in encode_baud_rate