serial_core: fix uart PORT_UNKNOWN handling