```
Two commits:
- First commit changes to mockable time for tx download (refactoring,
should only have an effect on regtest)
- Second commit adds a test that uses mocktime to test tx download
```
Backport of core [[https://github.com/bitcoin/bitcoin/pull/16197 | PR16197]].
Depends on D6146 and D6152.