[PATCH 1/2] user32/tests: Flush events before changing foreground.