Acquire cs_main before ATMP call in block_assemble bench
Acquire cs_main before ATMP call in block_assemble bench

Otherwise we fail an assert in sync.cpp:AssertLockHeldInternal.

tecnovert/particl-core,particl/particl-core,myriadcoin/myriadcoin,FeatherCoin/Feathercoin,lbryio/lbrycrd,pstratem/bitcoin,GlobalBoost/GlobalBoost,mruddy/bitcoin,OmniLayer/omnicore,jamesob/bitcoin,wellenreiter01/Feathercoin,tjps/bitcoin,kazcw/bitcoin,domob1812/bitcoin,namecoin/namecore,CryptArc/bitcoin,kallewoof/bitcoin,r8921039/bitcoin,vmp32k/litecoin,domob1812/namecore,fujicoin/fujicoin,rnicoll/bitcoin,mruddy/bitcoin,myriadteam/myriadcoin,n1bor/bitcoin,guncoin/guncoin,BTCGPU/BTCGPU,tjps/bitcoin,droark/bitcoin,tecnovert/particl-core,andreaskern/bitcoin,AkioNak/bitcoin,myriadteam/myriadcoin,litecoin-project/litecoin,jtimon/bitcoin,vmp32k/litecoin,pstratem/bitcoin,GroestlCoin/GroestlCoin,apoelstra/bitcoin,litecoin-project/litecoin,jambolo/bitcoin,yenliangl/bitcoin,CryptArc/bitcoin,qtumproject/qtum,Flowdalic/bitcoin,kallewoof/bitcoin,Xekyo/bitcoin,fujicoin/fujicoin,nikkitan/bitcoin,achow101/bitcoin,fujicoin/fujicoin,fujicoin/fujicoin,lateminer/bitcoin,FeatherCoin/Feathercoin,jonasschnelli/bitcoin,n1bor/bitcoin,yenliangl/bitcoin,peercoin/peercoin,OmniLayer/omnicore,tecnovert/particl-core,cdecker/bitcoin,instagibbs/bitcoin,jlopp/statoshi,vertcoin/vertcoin,dscotese/bitcoin,DigitalPandacoin/pandacoin,tjps/bitcoin,sipsorcery/bitcoin,digibyte/digibyte,jtimon/bitcoin,kallewoof/bitcoin,anditto/bitcoin,bespike/litecoin,bitcoinknots/bitcoin,nikkitan/bitcoin,tecnovert/particl-core,kallewoof/bitcoin,AkioNak/bitcoin,rnicoll/bitcoin,namecoin/namecore,bespike/litecoin,lbryio/lbrycrd,cdecker/bitcoin,afk11/bitcoin,fanquake/bitcoin,alecalve/bitcoin,fanquake/bitcoin,RHavar/bitcoin,sstone/bitcoin,GroestlCoin/GroestlCoin,domob1812/bitcoin,midnightmagic/bitcoin,Kogser/bitcoin,litecoin-project/litecoin,lbryio/lbrycrd,monacoinproject/monacoin,rnicoll/bitcoin,lbryio/lbrycrd,jlopp/statoshi,thrasher-/litecoin,particl/particl-core,namecoin/namecoin-core,namecoin/namecoin-core,domob1812/namecore,bitcoinknots/bitcoin,Sjors/bitcoin,domob1812/namecore,Christewart/bitcoin,Kogser/bitcoin,cdecker/bitcoin,tjps/bitcoin,pataquets/namecoin-core,h4x3rotab/BTCGPU,digibyte/digibyte,Christewart/bitcoin,bitcoinknots/bitcoin,anditto/bitcoin,prusnak/bitcoin,GroestlCoin/bitcoin,bitcoin/bitcoin,bespike/litecoin,Xekyo/bitcoin,myriadcoin/myriadcoin,BTCGPU/BTCGPU,gjhiggins/vcoincore,tecnovert/particl-core,Christewart/bitcoin,cdecker/bitcoin,GroestlCoin/GroestlCoin,guncoin/guncoin,MeshCollider/bitcoin,dscotese/bitcoin,untrustbank/litecoin,andreaskern/bitcoin,CryptArc/bitcoin,jamesob/bitcoin,Flowdalic/bitcoin,bitcoinknots/bitcoin,afk11/bitcoin,ahmedbodi/vertcoin,pataquets/namecoin-core,tecnovert/particl-core,fujicoin/fujicoin,practicalswift/bitcoin,practicalswift/bitcoin,RHavar/bitcoin,r8921039/bitcoin,JeremyRubin/bitcoin,mitchellcash/bitcoin,Kogser/bitcoin,ElementsProject/elements,domob1812/namecore,ahmedbodi/vertcoin,yenliangl/bitcoin,jonasschnelli/bitcoin,pstratem/bitcoin,Kogser/bitcoin,anditto/bitcoin,afk11/bitcoin,bitcoin/bitcoin,namecoin/namecore,vmp32k/litecoin,lateminer/bitcoin,domob1812/bitcoin,untrustbank/litecoin,rnicoll/dogecoin,andreaskern/bitcoin,andreaskern/bitcoin,jonasschnelli/bitcoin,qtumproject/qtum,CryptArc/bitcoin,bitcoinsSG/bitcoin,MeshCollider/bitcoin,MarcoFalke/bitcoin,DigitalPandacoin/pandacoin,bitcoinsSG/bitcoin,jambolo/bitcoin,rnicoll/bitcoin,monacoinproject/monacoin,thrasher-/litecoin,GroestlCoin/bitcoin,gjhiggins/vcoincore,JeremyRubin/bitcoin,ahmedbodi/vertcoin,myriadcoin/myriadcoin,alecalve/bitcoin,thrasher-/litecoin,ajtowns/bitcoin,nikkitan/bitcoin,alecalve/bitcoin,h4x3rotab/BTCGPU,Kogser/bitcoin,jnewbery/bitcoin,myriadcoin/myriadcoin,lateminer/bitcoin,guncoin/guncoin,midnightmagic/bitcoin,achow101/bitcoin,apoelstra/bitcoin,jamesob/bitcoin,prusnak/bitcoin,untrustbank/litecoin,litecoin-project/litecoin,midnightmagic/bitcoin,qtumproject/qtum,GlobalBoost/GlobalBoost,vertcoin/vertcoin,ajtowns/bitcoin,instagibbs/bitcoin,myriadcoin/myriadcoin,vmp32k/litecoin,ahmedbodi/vertcoin,GlobalBoost/GlobalBoost,rnicoll/dogecoin,DigitalPandacoin/pandacoin,jnewbery/bitcoin,h4x3rotab/BTCGPU,pataquets/namecoin-core,tjps/bitcoin,ElementsProject/elements,myriadteam/myriadcoin,wellenreiter01/Feathercoin,bespike/litecoin,h4x3rotab/BTCGPU,MeshCollider/bitcoin,EthanHeilman/bitcoin,untrustbank/litecoin,n1bor/bitcoin,guncoin/guncoin,mitchellcash/bitcoin,sstone/bitcoin,jamesob/bitcoin,anditto/bitcoin,kazcw/bitcoin,sstone/bitcoin,bitcoin/bitcoin,ElementsProject/elements,jnewbery/bitcoin,JeremyRubin/bitcoin,untrustbank/litecoin,DigitalPandacoin/pandacoin,mm-s/bitcoin,Christewart/bitcoin,domob1812/bitcoin,MarcoFalke/bitcoin,practicalswift/bitcoin,thrasher-/litecoin,alecalve/bitcoin,Bushstar/UFO-Project,kallewoof/bitcoin,lbryio/lbrycrd,jamesob/bitcoin,EthanHeilman/bitcoin,gjhiggins/vcoincore,GlobalBoost/GlobalBoost,n1bor/bitcoin,BTCGPU/BTCGPU,kallewoof/bitcoin,namecoin/namecoin-core,mm-s/bitcoin,digibyte/digibyte,instagibbs/bitcoin,MarcoFalke/bitcoin,n1bor/bitcoin,BTCGPU/BTCGPU,Bushstar/UFO-Project,fanquake/bitcoin,jambolo/bitcoin,myriadcoin/myriadcoin,rnicoll/bitcoin,EthanHeilman/bitcoin,lateminer/bitcoin,peercoin/peercoin,OmniLayer/omnicore,Xekyo/bitcoin,MeshCollider/bitcoin,myriadteam/myriadcoin,mruddy/bitcoin,afk11/bitcoin,MarcoFalke/bitcoin,r8921039/bitcoin,bitcoin/bitcoin,particl/particl-core,rnicoll/dogecoin,gjhiggins/vcoincore,fanquake/bitcoin,prusnak/bitcoin,bitcoinsSG/bitcoin,vertcoin/vertcoin,jnewbery/bitcoin,vmp32k/litecoin,GroestlCoin/bitcoin,digibyte/digibyte,r8921039/bitcoin,GroestlCoin/GroestlCoin,ajtowns/bitcoin,ericshawlinux/bitcoin,anditto/bitcoin,droark/bitcoin,h4x3rotab/BTCGPU,r8921039/bitcoin,Kogser/bitcoin,jonasschnelli/bitcoin,practicalswift/bitcoin,fujicoin/fujicoin,GroestlCoin/GroestlCoin,OmniLayer/omnicore,wellenreiter01/Feathercoin,Sjors/bitcoin,dscotese/bitcoin,Flowdalic/bitcoin,h4x3rotab/BTCGPU,RHavar/bitcoin,droark/bitcoin,guncoin/guncoin,instagibbs/bitcoin,fanquake/bitcoin,GlobalBoost/GlobalBoost,nikkitan/bitcoin,namecoin/namecore,bitcoin/bitcoin,rnicoll/dogecoin,droark/bitcoin,mruddy/bitcoin,namecoin/namecoin-core,CryptArc/bitcoin,ericshawlinux/bitcoin,Bushstar/UFO-Project,sipsorcery/bitcoin,domob1812/bitcoin,BTCGPU/BTCGPU,JeremyRubin/bitcoin,bitcoinsSG/bitcoin,RHavar/bitcoin,particl/particl-core,RHavar/bitcoin,yenliangl/bitcoin,nikkitan/bitcoin,jlopp/statoshi,mm-s/bitcoin,Bushstar/UFO-Project,ahmedbodi/vertcoin,GlobalBoost/GlobalBoost,myriadteam/myriadcoin,dscotese/bitcoin,kazcw/bitcoin,Sjors/bitcoin,pstratem/bitcoin,Flowdalic/bitcoin,sipsorcery/bitcoin,Kogser/bitcoin,dscotese/bitcoin,midnightmagic/bitcoin,Sjors/bitcoin,jlopp/statoshi,jtimon/bitcoin,GroestlCoin/bitcoin,bitcoinsSG/bitcoin,qtumproject/qtum,domob1812/bitcoin,vertcoin/vertcoin,litecoin-project/litecoin,afk11/bitcoin,particl/particl-core,peercoin/peercoin,AkioNak/bitcoin,Kogser/bitcoin,pstratem/bitcoin,ericshawlinux/bitcoin,mitchellcash/bitcoin,sipsorcery/bitcoin,GlobalBoost/GlobalBoost,ElementsProject/elements,yenliangl/bitcoin,andreaskern/bitcoin,instagibbs/bitcoin,Christewart/bitcoin,lateminer/bitcoin,cdecker/bitcoin,ericshawlinux/bitcoin,FeatherCoin/Feathercoin,OmniLayer/omnicore,FeatherCoin/Feathercoin,peercoin/peercoin,bespike/litecoin,pataquets/namecoin-core,ericshawlinux/bitcoin,mitchellcash/bitcoin,OmniLayer/omnicore,namecoin/namecore,sipsorcery/bitcoin,ahmedbodi/vertcoin,thrasher-/litecoin,peercoin/peercoin,Sjors/bitcoin,Christewart/bitcoin,jamesob/bitcoin,achow101/bitcoin,achow101/bitcoin,sipsorcery/bitcoin,Flowdalic/bitcoin,namecoin/namecore,midnightmagic/bitcoin,anditto/bitcoin,mm-s/bitcoin,bitcoin/bitcoin,GroestlCoin/bitcoin,wellenreiter01/Feathercoin,sstone/bitcoin,andreaskern/bitcoin,mruddy/bitcoin,mm-s/bitcoin,ElementsProject/elements,sstone/bitcoin,ajtowns/bitcoin,jlopp/statoshi,Kogser/bitcoin,prusnak/bitcoin,digibyte/digibyte,qtumproject/qtum,apoelstra/bitcoin,achow101/bitcoin,Xekyo/bitcoin,apoelstra/bitcoin,namecoin/namecoin-core,lateminer/bitcoin,vertcoin/vertcoin,ericshawlinux/bitcoin,thrasher-/litecoin,bespike/litecoin,monacoinproject/monacoin,sstone/bitcoin,BTCGPU/BTCGPU,lbryio/lbrycrd,EthanHeilman/bitcoin,Bushstar/UFO-Project,mitchellcash/bitcoin,droark/bitcoin,instagibbs/bitcoin,dscotese/bitcoin,kazcw/bitcoin,wellenreiter01/Feathercoin,prusnak/bitcoin,practicalswift/bitcoin,mruddy/bitcoin,Xekyo/bitcoin,jonasschnelli/bitcoin,gjhiggins/vcoincore,pataquets/namecoin-core,apoelstra/bitcoin,monacoinproject/monacoin,wellenreiter01/Feathercoin,prusnak/bitcoin,practicalswift/bitcoin,JeremyRubin/bitcoin,qtumproject/qtum,midnightmagic/bitcoin,Bushstar/UFO-Project,EthanHeilman/bitcoin,jtimon/bitcoin,rnicoll/bitcoin,guncoin/guncoin,GroestlCoin/GroestlCoin,pstratem/bitcoin,jambolo/bitcoin,RHavar/bitcoin,mm-s/bitcoin,litecoin-project/litecoin,CryptArc/bitcoin,pataquets/namecoin-core,fanquake/bitcoin,Kogser/bitcoin,achow101/bitcoin,AkioNak/bitcoin,rnicoll/dogecoin,gjhiggins/vcoincore,ajtowns/bitcoin,cdecker/bitcoin,Kogser/bitcoin,vmp32k/litecoin,peercoin/peercoin,jnewbery/bitcoin,jtimon/bitcoin,kazcw/bitcoin,EthanHeilman/bitcoin,MarcoFalke/bitcoin,nikkitan/bitcoin,MeshCollider/bitcoin,MarcoFalke/bitcoin,yenliangl/bitcoin,tjps/bitcoin,bitcoinknots/bitcoin,MeshCollider/bitcoin,namecoin/namecoin-core,Xekyo/bitcoin,GroestlCoin/bitcoin,alecalve/bitcoin,n1bor/bitcoin,alecalve/bitcoin,JeremyRubin/bitcoin,droark/bitcoin,FeatherCoin/Feathercoin,AkioNak/bitcoin,r8921039/bitcoin,jlopp/statoshi,kazcw/bitcoin,vertcoin/vertcoin,afk11/bitcoin,Flowdalic/bitcoin,AkioNak/bitcoin,DigitalPandacoin/pandacoin,particl/particl-core,qtumproject/qtum,ElementsProject/elements,jtimon/bitcoin,lbryio/lbrycrd,monacoinproject/monacoin,ajtowns/bitcoin,jambolo/bitcoin,bitcoinsSG/bitcoin,domob1812/namecore,myriadteam/myriadcoin,DigitalPandacoin/pandacoin,FeatherCoin/Feathercoin,domob1812/namecore,apoelstra/bitcoin,mitchellcash/bitcoin,jambolo/bitcoin,untrustbank/litecoin,monacoinproject/monacoin,Kogser/bitcoin,digibyte/digibyte