[PATCH 5.12 163/677] serial: stm32: fix a deadlock condition with wakeup event