MB-8241: Make ns_server work with couch_set_view refactoring

This commit needs http://review.couchbase.org/26127 in
order to work.

Change-Id: Ie7074f8cad6f997cc4c9a85ec1d19fa0175e349b
Reviewed-on: http://review.couchbase.org/26159
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>