From https://github.com/couchbase/couchbase-lite-C/issues/342
CBL-3704 Double free of BLIPIO
CBL-3832 Double free of BLIPIO (Port)