[PATCH 4.14 150/173] serial: uartps: Add a timeout to the tx empty wait