Fix test_wait_for_match interlacing issue on OS X