Speed up internal replicator

Increase internal replicator default batch size and batch count. On systems
with a slower (remote) disks, or a slower dist protocol, internal replicator
can easily fall behind during a high rate of bulk_docs ingestion. For each
batch of 100 it had to sync security properties, make an rpc call to fetch
remote target sync checkpoint, open handles, fetch revs diff, etc. If there are
changes to sync it would also incur the commit (fsycn) delay as well. It make
sense to operate on slightly larger batches to increase performance. I picked
500 as that's the default for the (external) replicator.

It also helps to keep replicating more than one batch once we've brought the
source and target data into the page cache, so opted to make it do 5 batches
per job run at most.

A survey of other batch size already in use by the internal replicator:
  * Shard splitting uses a batch of 2000 [1].
  * Seed" system dbs replication uses 1000 [2]

There is some danger in creating too large of a rev list for highly conflicted
documents. In that case already have chunking for max rev [3] to keep
everything under 5000 revs per batch.

To be on the safe side both values are now configurable and can be adjusted at
runtime.

To validate how this affects performance used a simple benchmarking utility:
 https://gist.github.com/nickva/9a2a3665702a876ec06d3d720aa19b0a

With defaults:
```
 fabric_bench:go().
...
 *** DB fabric-bench-1683835787725432000 [{q,4},{n,3}] created. Inserting 100000 docs
 * Add 100000 docs small, bs=1000     (Hz):     420
    ---  mem3_sync backlog: 76992
    ---  mem3_sync backlog: 82792
    ---  mem3_sync backlog: 107592
    ... snipped a few minutes of waiting for backlog to clear ...
    ---  mem3_sync backlog: 1500
    ---  mem3_sync backlog: 0
...
ok
```

With this PR
```
(node1@127.0.0.1)3> fabric_bench:go().
...
 *** DB fabric-bench-1683834758071419000 [{q,4},{n,3}] created. Inserting 100000 docs
 * Add 100000 docs small, bs=1000     (Hz):     600
    ---  mem3_sync backlog: 0
...
ok
```

100000 doc insertion rate improved from 420 docs/sec to 600 with no minutes
long sync backlog left over.

[1] https://github.com/apache/couchdb/blob/a854625d74a5b3847b99c6f536187723821d0aae/src/mem3/src/mem3_reshard_job.erl#L52
[2] https://github.com/apache/couchdb/blob/a854625d74a5b3847b99c6f536187723821d0aae/src/mem3/src/mem3_rpc.erl#L181
[3] https://github.com/apache/couchdb/blob/a854625d74a5b3847b99c6f536187723821d0aae/src/mem3/src/mem3_rep.erl#L609
1 file changed