Fix insideCallback inconsistency in NetworkPeer (#3858)
Fix insideCallback inconsistency in NetworkPeer (#3858)

* Fix insideCallback inconsistency in NetworkPeer

* Fix logic and inadvertently introduced lock

* Fix typo

* Update ConsensusManagerTests.cs

* Fix merge

* Rename variable

* Add comments

* Update NetworkPeer.cs

quantumagi/StratisBitcoinFullNode,stratisproject/StratisBitcoinFullNode,fassadlr/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,fassadlr/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,stratisproject/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode