Adds a potential fix for CDTReplicatorFactory -stop bug.

The replication seems to stop. The ReplicationAcceptance test,
-testStopPullReplicationWithFactory seems to work, but the 'Push'
version of that test does not. It currently crashes and I've not
time to look into it.

All these commit messages will be cleaned up, and squashed
appropriately, of course.