fix scope of shutdown_event for kv cases

Change-Id: Ic994ac404582de9b4ae02a450912b4e933c591f1
Reviewed-on: http://review.couchbase.org/26969
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>