Wait for replication to finish

Just wait for the CBLReplication.status property to change to Idle or Stopped.

In a unit test, you’ll need to write a loop that spins the thread’s runloop so you can block until the status property changes. There are some examples of this in Unit-Tests/Replication_Tests.m in the iOS repository.