serial: core: fix crash in uart_suspend_port