etcdserver: refactor non-blocking check for sync tests

to make it much more reliable and avoid false errors.
Merge pull request #1505 from yichengq/193

etcdserver: refactor non-blocking check for sync tests