Reduce the scope for variables
Reduce the scope for variables

Change-Id: I9c0ee11a144171c5c800e80009c0ece2598b1984
Reviewed-on: http://review.couchbase.org/53213
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>

owendCB/memcached,daverigby/kv_engine,daverigby/kv_engine,couchbase/memcached,daverigby/memcached,daverigby/kv_engine,couchbase/memcached,cloudrain21/memcached-1,owendCB/memcached,daverigby/memcached,daverigby/kv_engine,cloudrain21/memcached-1,cloudrain21/memcached-1,owendCB/memcached,owendCB/memcached,couchbase/memcached,couchbase/memcached,daverigby/memcached,daverigby/memcached,cloudrain21/memcached-1