[PATCH 5.10 135/530] serial: stm32: fix a deadlock condition with wakeup event