etcdserver: refactor non-blocking check for sync tests

to make it much more reliable and avoid false errors.