Minor changes in tizosalsync.c
Fix in test_event_stat to make sure it waits enough time before concluding that
the test has passed or not.