Add workaround to prevent replicator is used after released in tests
Add workaround to prevent replicator is used after released in tests

This is a workaround for CBL - 1061

couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios