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