put removeNetworkReachabilityListener inside clearDbRef

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