init: add missing cs_main lock
init: add missing cs_main lock

BlockManager::m_block_tree_db is protected by cs_main, so take the
cs_main lock while accessing it.

lateminer/bitcoin,ajtowns/bitcoin,AkioNak/bitcoin,GroestlCoin/GroestlCoin,Xekyo/bitcoin,instagibbs/bitcoin,GroestlCoin/GroestlCoin,particl/particl-core,kallewoof/bitcoin,andreaskern/bitcoin,domob1812/bitcoin,jlopp/statoshi,jamesob/bitcoin,jambolo/bitcoin,lateminer/bitcoin,achow101/bitcoin,jambolo/bitcoin,mruddy/bitcoin,lateminer/bitcoin,dscotese/bitcoin,GroestlCoin/GroestlCoin,AkioNak/bitcoin,fujicoin/fujicoin,sipsorcery/bitcoin,instagibbs/bitcoin,Xekyo/bitcoin,jlopp/statoshi,lateminer/bitcoin,sipsorcery/bitcoin,fujicoin/fujicoin,AkioNak/bitcoin,namecoin/namecore,particl/particl-core,sipsorcery/bitcoin,sstone/bitcoin,anditto/bitcoin,jlopp/statoshi,domob1812/bitcoin,namecoin/namecoin-core,namecoin/namecore,fujicoin/fujicoin,fanquake/bitcoin,anditto/bitcoin,Xekyo/bitcoin,sstone/bitcoin,fanquake/bitcoin,GroestlCoin/bitcoin,fujicoin/fujicoin,ajtowns/bitcoin,ajtowns/bitcoin,sstone/bitcoin,jamesob/bitcoin,tecnovert/particl-core,namecoin/namecoin-core,bitcoin/bitcoin,dscotese/bitcoin,namecoin/namecore,achow101/bitcoin,sstone/bitcoin,dscotese/bitcoin,namecoin/namecoin-core,Xekyo/bitcoin,andreaskern/bitcoin,fujicoin/fujicoin,anditto/bitcoin,dscotese/bitcoin,GroestlCoin/GroestlCoin,jambolo/bitcoin,mruddy/bitcoin,jamesob/bitcoin,ajtowns/bitcoin,lateminer/bitcoin,bitcoin/bitcoin,particl/particl-core,andreaskern/bitcoin,andreaskern/bitcoin,AkioNak/bitcoin,GroestlCoin/GroestlCoin,GroestlCoin/GroestlCoin,AkioNak/bitcoin,namecoin/namecoin-core,jambolo/bitcoin,kallewoof/bitcoin,Xekyo/bitcoin,bitcoinsSG/bitcoin,mruddy/bitcoin,GroestlCoin/bitcoin,instagibbs/bitcoin,tecnovert/particl-core,dscotese/bitcoin,sipsorcery/bitcoin,sipsorcery/bitcoin,anditto/bitcoin,jambolo/bitcoin,domob1812/bitcoin,domob1812/bitcoin,AkioNak/bitcoin,GroestlCoin/bitcoin,achow101/bitcoin,ajtowns/bitcoin,GroestlCoin/bitcoin,anditto/bitcoin,particl/particl-core,bitcoin/bitcoin,instagibbs/bitcoin,bitcoin/bitcoin,dscotese/bitcoin,namecoin/namecore,anditto/bitcoin,Xekyo/bitcoin,jamesob/bitcoin,bitcoinsSG/bitcoin,bitcoin/bitcoin,sstone/bitcoin,namecoin/namecoin-core,domob1812/bitcoin,jambolo/bitcoin,namecoin/namecore,namecoin/namecore,bitcoinsSG/bitcoin,bitcoinsSG/bitcoin,bitcoin/bitcoin,fanquake/bitcoin,mruddy/bitcoin,tecnovert/particl-core,sipsorcery/bitcoin,tecnovert/particl-core,kallewoof/bitcoin,instagibbs/bitcoin,fanquake/bitcoin,GroestlCoin/bitcoin,bitcoinsSG/bitcoin,particl/particl-core,andreaskern/bitcoin,tecnovert/particl-core,domob1812/bitcoin,kallewoof/bitcoin,instagibbs/bitcoin,fanquake/bitcoin,fujicoin/fujicoin,mruddy/bitcoin,particl/particl-core,ajtowns/bitcoin,jamesob/bitcoin,achow101/bitcoin,sstone/bitcoin,fanquake/bitcoin,lateminer/bitcoin,jlopp/statoshi,kallewoof/bitcoin,bitcoinsSG/bitcoin,mruddy/bitcoin,namecoin/namecoin-core,jlopp/statoshi,achow101/bitcoin,jamesob/bitcoin,tecnovert/particl-core,andreaskern/bitcoin,GroestlCoin/bitcoin,kallewoof/bitcoin,jlopp/statoshi,achow101/bitcoin