Retry recording sync info on couch backend (#5388).
Add test script for syncing many replicas concurrently (#5386).