[PATCH v3 3/6] serial: core: fix sanitizing check for RTS settings