MB-11146 Replicate ddocs in a subprocess of capi_set_view_manager.
MB-11146 Replicate ddocs in a subprocess of capi_set_view_manager.

Because otherwise capi_set_view_manager might get stuck in replication
which in turn will slows down the failover.

Change-Id: Ie8a1f294c175ca5a59a057c91927fe83fd1b5f11
Reviewed-on: http://review.couchbase.org/39035
Tested-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>
Reviewed-by: Artem Stemkovski <15a0730a27c69f62ab86f2b6c639fca202166c02@couchbase.com>

nimishzynga/ns_server,mschoch/ns_server,ceejatec/ns_server,ceejatec/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,membase/ns_server,mschoch/ns_server,membase/ns_server,nimishzynga/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,ceejatec/ns_server,nimishzynga/ns_server,mschoch/ns_server,membase/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,membase/ns_server,membase/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,ceejatec/ns_server,t3rm1n4l/ns_server,membase/ns_server,ceejatec/ns_server,ceejatec/ns_server