Flush every log message in _StandardLogger (fix flaky test).
Flush every log message in _StandardLogger (fix flaky test).

vasily-v-ryabov/pywinauto,airelil/pywinauto,pywinauto/pywinauto,drinkertea/pywinauto