net: Restrict period when cs_vNodes mutex is locked
Summary:
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 core#21563.
Test Plan:
With clang and debug:
ninja check-all ./contrib/teamcity/build-configurations.py build-tsan
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Differential Revision: https://reviews.bitcoinabc.org/D11301