Francois Gouget : ws2_32/tests: Fix a race in sock.c:test_write_events().