This avoids having to remember to set it whenever mocktime is used with
peer connections. Also, it might help avoiding disconnects when
attaching a debugger to a running test.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/22960 | core#22960]]
Depends on D10955