[net processing] Change cs_main TRY_LOCK to LOCK in SendMessages()
[net processing] Change cs_main TRY_LOCK to LOCK in SendMessages()

This was changed to TRY_LOCK in #1117 to fix a potential deadlock
between cs_main and cs_vSend. cs_vSend was split into cs_vSend and
cs_sendProcessing in #9535 (and cs_sendProcessing was changed from a
TRY_LOCK to a LOCK in the same PR).

Since cs_vSend can no longer be taken before cs_main, revert this to a
LOCK().

This commit leaves part of the code with bad indentation. That is fixed
by the next (whitespace change only) commit.

qtumproject/qtum,JeremyRubin/bitcoin,litecoin-project/litecoin,practicalswift/bitcoin,sipsorcery/bitcoin,particl/particl-core,EthanHeilman/bitcoin,sipsorcery/bitcoin,namecoin/namecoin-core,lateminer/bitcoin,bitcoinsSG/bitcoin,GroestlCoin/GroestlCoin,achow101/bitcoin,JeremyRubin/bitcoin,GroestlCoin/bitcoin,domob1812/namecore,namecoin/namecore,mm-s/bitcoin,jlopp/statoshi,apoelstra/bitcoin,litecoin-project/litecoin,sstone/bitcoin,sstone/bitcoin,Xekyo/bitcoin,achow101/bitcoin,qtumproject/qtum,dscotese/bitcoin,instagibbs/bitcoin,sstone/bitcoin,apoelstra/bitcoin,Sjors/bitcoin,GroestlCoin/GroestlCoin,sstone/bitcoin,jambolo/bitcoin,ajtowns/bitcoin,MarcoFalke/bitcoin,fanquake/bitcoin,JeremyRubin/bitcoin,bitcoin/bitcoin,prusnak/bitcoin,ElementsProject/elements,Xekyo/bitcoin,pataquets/namecoin-core,dscotese/bitcoin,mruddy/bitcoin,MeshCollider/bitcoin,AkioNak/bitcoin,jonasschnelli/bitcoin,anditto/bitcoin,andreaskern/bitcoin,MarcoFalke/bitcoin,achow101/bitcoin,cdecker/bitcoin,prusnak/bitcoin,domob1812/bitcoin,pstratem/bitcoin,cdecker/bitcoin,qtumproject/qtum,MarcoFalke/bitcoin,jlopp/statoshi,bitcoinsSG/bitcoin,bitcoin/bitcoin,alecalve/bitcoin,domob1812/bitcoin,GroestlCoin/GroestlCoin,GroestlCoin/bitcoin,apoelstra/bitcoin,jambolo/bitcoin,sipsorcery/bitcoin,AkioNak/bitcoin,ajtowns/bitcoin,particl/particl-core,MeshCollider/bitcoin,sipsorcery/bitcoin,achow101/bitcoin,Xekyo/bitcoin,fujicoin/fujicoin,MarcoFalke/bitcoin,namecoin/namecoin-core,namecoin/namecoin-core,jnewbery/bitcoin,tecnovert/particl-core,bitcoinknots/bitcoin,fanquake/bitcoin,prusnak/bitcoin,particl/particl-core,rnicoll/bitcoin,Sjors/bitcoin,ElementsProject/elements,andreaskern/bitcoin,cdecker/bitcoin,EthanHeilman/bitcoin,ElementsProject/elements,pataquets/namecoin-core,kallewoof/bitcoin,cdecker/bitcoin,yenliangl/bitcoin,rnicoll/dogecoin,GroestlCoin/GroestlCoin,rnicoll/bitcoin,namecoin/namecore,bitcoinsSG/bitcoin,jlopp/statoshi,practicalswift/bitcoin,GroestlCoin/GroestlCoin,MeshCollider/bitcoin,anditto/bitcoin,namecoin/namecore,namecoin/namecore,mruddy/bitcoin,jamesob/bitcoin,sstone/bitcoin,EthanHeilman/bitcoin,jonasschnelli/bitcoin,n1bor/bitcoin,jamesob/bitcoin,fujicoin/fujicoin,JeremyRubin/bitcoin,lateminer/bitcoin,practicalswift/bitcoin,bitcoinknots/bitcoin,tecnovert/particl-core,domob1812/bitcoin,jnewbery/bitcoin,ElementsProject/elements,domob1812/namecore,bitcoin/bitcoin,n1bor/bitcoin,Sjors/bitcoin,mm-s/bitcoin,jambolo/bitcoin,kallewoof/bitcoin,lateminer/bitcoin,namecoin/namecoin-core,achow101/bitcoin,MeshCollider/bitcoin,lateminer/bitcoin,kallewoof/bitcoin,litecoin-project/litecoin,fanquake/bitcoin,fujicoin/fujicoin,ajtowns/bitcoin,fujicoin/fujicoin,bitcoinknots/bitcoin,n1bor/bitcoin,mm-s/bitcoin,alecalve/bitcoin,EthanHeilman/bitcoin,GroestlCoin/bitcoin,pataquets/namecoin-core,yenliangl/bitcoin,bitcoinknots/bitcoin,cdecker/bitcoin,n1bor/bitcoin,domob1812/bitcoin,qtumproject/qtum,domob1812/bitcoin,rnicoll/bitcoin,particl/particl-core,alecalve/bitcoin,anditto/bitcoin,litecoin-project/litecoin,MarcoFalke/bitcoin,yenliangl/bitcoin,yenliangl/bitcoin,jonasschnelli/bitcoin,jlopp/statoshi,AkioNak/bitcoin,apoelstra/bitcoin,jlopp/statoshi,Xekyo/bitcoin,GroestlCoin/GroestlCoin,Xekyo/bitcoin,andreaskern/bitcoin,tecnovert/particl-core,jnewbery/bitcoin,n1bor/bitcoin,prusnak/bitcoin,dscotese/bitcoin,ajtowns/bitcoin,namecoin/namecore,ElementsProject/elements,GroestlCoin/bitcoin,jlopp/statoshi,ajtowns/bitcoin,jamesob/bitcoin,JeremyRubin/bitcoin,kallewoof/bitcoin,practicalswift/bitcoin,qtumproject/qtum,cdecker/bitcoin,EthanHeilman/bitcoin,tecnovert/particl-core,rnicoll/bitcoin,ajtowns/bitcoin,pataquets/namecoin-core,instagibbs/bitcoin,pataquets/namecoin-core,fujicoin/fujicoin,alecalve/bitcoin,mm-s/bitcoin,litecoin-project/litecoin,anditto/bitcoin,jambolo/bitcoin,anditto/bitcoin,mruddy/bitcoin,JeremyRubin/bitcoin,AkioNak/bitcoin,mruddy/bitcoin,bitcoin/bitcoin,sipsorcery/bitcoin,fanquake/bitcoin,lateminer/bitcoin,instagibbs/bitcoin,kallewoof/bitcoin,namecoin/namecoin-core,bitcoin/bitcoin,domob1812/namecore,anditto/bitcoin,GroestlCoin/bitcoin,AkioNak/bitcoin,jamesob/bitcoin,jonasschnelli/bitcoin,rnicoll/dogecoin,rnicoll/bitcoin,sstone/bitcoin,rnicoll/dogecoin,qtumproject/qtum,kallewoof/bitcoin,sipsorcery/bitcoin,achow101/bitcoin,pataquets/namecoin-core,jnewbery/bitcoin,bitcoinsSG/bitcoin,practicalswift/bitcoin,fanquake/bitcoin,bitcoinsSG/bitcoin,domob1812/namecore,tecnovert/particl-core,ElementsProject/elements,domob1812/namecore,particl/particl-core,rnicoll/dogecoin,domob1812/bitcoin,qtumproject/qtum,AkioNak/bitcoin,dscotese/bitcoin,jambolo/bitcoin,particl/particl-core,prusnak/bitcoin,yenliangl/bitcoin,namecoin/namecore,pstratem/bitcoin,instagibbs/bitcoin,rnicoll/bitcoin,andreaskern/bitcoin,mruddy/bitcoin,Xekyo/bitcoin,MeshCollider/bitcoin,mm-s/bitcoin,alecalve/bitcoin,GroestlCoin/bitcoin,Sjors/bitcoin,EthanHeilman/bitcoin,n1bor/bitcoin,bitcoin/bitcoin,apoelstra/bitcoin,jnewbery/bitcoin,tecnovert/particl-core,MeshCollider/bitcoin,instagibbs/bitcoin,dscotese/bitcoin,Sjors/bitcoin,fanquake/bitcoin,domob1812/namecore,bitcoinknots/bitcoin,mruddy/bitcoin,pstratem/bitcoin,instagibbs/bitcoin,prusnak/bitcoin,pstratem/bitcoin,bitcoinsSG/bitcoin,jambolo/bitcoin,jamesob/bitcoin,andreaskern/bitcoin,lateminer/bitcoin,practicalswift/bitcoin,alecalve/bitcoin,yenliangl/bitcoin,andreaskern/bitcoin,pstratem/bitcoin,MarcoFalke/bitcoin,mm-s/bitcoin,litecoin-project/litecoin,rnicoll/dogecoin,dscotese/bitcoin,apoelstra/bitcoin,namecoin/namecoin-core,jamesob/bitcoin,fujicoin/fujicoin,pstratem/bitcoin,jonasschnelli/bitcoin