MB-5425 Fix Mc-engine synchronous wait interface with mccouch
MB-5425 Fix Mc-engine synchronous wait interface with mccouch

Mc-engine synchronous wait was incorrect because it might never
receive the response to its request if connection is reset. In
fact, either couch-kvstore might abort or mc-engine might get
stuck forever. Instead, mc-engine must resend requests after
reset connection if it must wait for a response.

Change-Id: If143b84ce1b94568414b5ffda1fd12e9727d70b5
Reviewed-on: http://review.couchbase.org/16648
Reviewed-by: Chiyoung Seo <8b279095f11c26cc21045fda5a3e51debb005aa9@gmail.com>
Tested-by: Jin Lim <c45cd80a556f432a3607171a6818cd5a074b5cd4@couchbase.com>
Reviewed-by: Jin Lim <c45cd80a556f432a3607171a6818cd5a074b5cd4@couchbase.com>

membase/ep-engine,couchbase/ep-engine,couchbase/ep-engine,jimwwalker/ep-engine,sriganes/ep-engine,abhinavdangeti/ep-engine,owendCB/ep-engine,couchbase/ep-engine,daverigby/ep-engine,jimwwalker/ep-engine,daverigby/ep-engine,daverigby/ep-engine,hisundar/ep-engine,sriganes/ep-engine,daverigby/ep-engine,daverigby/kv_engine,owendCB/ep-engine,membase/ep-engine,sriganes/ep-engine,owendCB/ep-engine,abhinavdangeti/ep-engine,daverigby/kv_engine,couchbase/ep-engine,hisundar/ep-engine,membase/ep-engine,teligent-ru/ep-engine,teligent-ru/ep-engine,teligent-ru/ep-engine,hisundar/ep-engine,teligent-ru/ep-engine,abhinavdangeti/ep-engine,owendCB/ep-engine,sriganes/ep-engine,daverigby/kv_engine,jimwwalker/ep-engine,abhinavdangeti/ep-engine,jimwwalker/ep-engine,membase/ep-engine,daverigby/kv_engine,hisundar/ep-engine,abhinavdangeti/ep-engine