MB-15926 Properly close last replication stream(s).
MB-15926 Properly close last replication stream(s).

Change-Id: I1c334e6024f26aaa765a5a0705895c5e2ab7be3c
Reviewed-on: http://review.couchbase.org/54237
Reviewed-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>
Tested-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae7686ca921e6c9433147@gmail.com>

membase/ns_server,membase/ns_server,membase/ns_server,membase/ns_server,ceejatec/ns_server,ceejatec/ns_server,ceejatec/ns_server,ceejatec/ns_server,ceejatec/ns_server,membase/ns_server,membase/ns_server,ceejatec/ns_server