```
his PR restricts the period when the cs_vNodes mutex is locked, prevents the only case when cs_vNodes could be locked before the ::cs_main.
This change makes the explicit locking of recursive mutexes in the explicit order redundant.
```
Backport of [[https://github.com/bitcoin/bitcoin/pull/21563 | core#21563]].