Improved the ordering of KVO notifications sent by CBLReplication.