fix bugs found in test
Merge branch 'master' of https://github.com/Xiaomei-Zhang/couchbase_goxdcr_impl
1. fix deadlock in xmem_nozzle
2. add test