Add equivalent fix for goOffline()

https://github.com/couchbase/couchbase-lite-java-core/issues/253