[PATCH 5.10 141/530] serial: stm32: add FIFO flush when port is closed