[wallet] Don't hold cs_LastBlockFile while calling setBestChain
[wallet] Don't hold cs_LastBlockFile while calling setBestChain

cs_LastBlockFile shouldn't be held while calling wallet functions.

digibyte/digibyte,bitcoinsSG/bitcoin,n1bor/bitcoin,OmniLayer/omnicore,randy-waterhouse/bitcoin,midnightmagic/bitcoin,brandonrobertz/namecoin-core,spiritlinxl/BTCGPU,sebrandon1/bitcoin,nikkitan/bitcoin,monacoinproject/monacoin,jonasschnelli/bitcoin,AkioNak/bitcoin,dscotese/bitcoin,mruddy/bitcoin,EthanHeilman/bitcoin,jmcorgan/bitcoin,Exgibichi/statusquo,simonmulser/bitcoin,peercoin/peercoin,sipsorcery/bitcoin,alecalve/bitcoin,Exgibichi/statusquo,21E14/bitcoin,bitbrazilcoin-project/bitbrazilcoin,n1bor/bitcoin,droark/bitcoin,Bushstar/UFO-Project,myriadteam/myriadcoin,FeatherCoin/Feathercoin,destenson/bitcoin--bitcoin,laudaa/bitcoin,FeatherCoin/Feathercoin,Sjors/bitcoin,GroestlCoin/bitcoin,lbryio/lbrycrd,domob1812/namecore,EthanHeilman/bitcoin,FeatherCoin/Feathercoin,kazcw/bitcoin,starwels/starwels,mitchellcash/bitcoin,romanornr/viacoin,GroestlCoin/bitcoin,bitbrazilcoin-project/bitbrazilcoin,kallewoof/bitcoin,Bushstar/UFO-Project,qtumproject/qtum,MarcoFalke/bitcoin,gmaxwell/bitcoin,anditto/bitcoin,namecoin/namecoin-core,deeponion/deeponion,joshrabinowitz/bitcoin,bitbrazilcoin-project/bitbrazilcoin,kazcw/bitcoin,gjhiggins/vcoincore,wangxinxi/litecoin,StarbuckBG/BTCGPU,tjps/bitcoin,h4x3rotab/BTCGPU,AkioNak/bitcoin,ajtowns/bitcoin,fujicoin/fujicoin,ajtowns/bitcoin,donaloconnor/bitcoin,cryptoprojects/ultimateonlinecash,alecalve/bitcoin,AkioNak/bitcoin,wellenreiter01/Feathercoin,nikkitan/bitcoin,stamhe/bitcoin,sstone/bitcoin,simonmulser/bitcoin,anditto/bitcoin,GroestlCoin/bitcoin,x-kalux/bitcoin_WiG-B,mm-s/bitcoin,Theshadow4all/ShadowCoin,afk11/bitcoin,bitcoinsSG/bitcoin,fanquake/bitcoin,lbryio/lbrycrd,MeshCollider/bitcoin,ryanofsky/bitcoin,pataquets/namecoin-core,EthanHeilman/bitcoin,untrustbank/litecoin,deeponion/deeponion,x-kalux/bitcoin_WiG-B,joshrabinowitz/bitcoin,namecoin/namecoin-core,OmniLayer/omnicore,Theshadow4all/ShadowCoin,wangxinxi/litecoin,Anfauglith/iop-hd,viacoin/viacoin,sstone/bitcoin,Jcing95/iop-hd,prusnak/bitcoin,CryptArc/bitcoin,ahmedbodi/vertcoin,domob1812/huntercore,bespike/litecoin,MazaCoin/maza,practicalswift/bitcoin,Chancoin-core/CHANCOIN,mm-s/bitcoin,donaloconnor/bitcoin,jamesob/bitcoin,apoelstra/bitcoin,randy-waterhouse/bitcoin,BitzenyCoreDevelopers/bitzeny,bespike/litecoin,BTCGPU/BTCGPU,gjhiggins/vcoincore,JeremyRubin/bitcoin,cryptoprojects/ultimateonlinecash,stamhe/bitcoin,litecoin-project/litecoin,mm-s/bitcoin,kevcooper/bitcoin,jtimon/bitcoin,bespike/litecoin,sarielsaz/sarielsaz,TheBlueMatt/bitcoin,randy-waterhouse/bitcoin,afk11/bitcoin,Friedbaumer/litecoin,jonasschnelli/bitcoin,lbryio/lbrycrd,domob1812/namecore,deeponion/deeponion,GroestlCoin/GroestlCoin,ElementsProject/elements,OmniLayer/omnicore,Chancoin-core/CHANCOIN,monacoinproject/monacoin,untrustbank/litecoin,vmp32k/litecoin,Theshadow4all/ShadowCoin,rnicoll/dogecoin,jambolo/bitcoin,sebrandon1/bitcoin,cdecker/bitcoin,simonmulser/bitcoin,starwels/starwels,GroestlCoin/GroestlCoin,deeponion/deeponion,instagibbs/bitcoin,mruddy/bitcoin,21E14/bitcoin,nbenoit/bitcoin,CryptArc/bitcoin,ajtowns/bitcoin,21E14/bitcoin,CryptArc/bitcoin,gmaxwell/bitcoin,h4x3rotab/BTCGPU,RHavar/bitcoin,cryptoprojects/ultimateonlinecash,alecalve/bitcoin,Kogser/bitcoin,lbryio/lbrycrd,starwels/starwels,cdecker/bitcoin,Kogser/bitcoin,wellenreiter01/Feathercoin,Friedbaumer/litecoin,guncoin/guncoin,AkioNak/bitcoin,ahmedbodi/vertcoin,namecoin/namecoin-core,MarcoFalke/bitcoin,trippysalmon/bitcoin,GlobalBoost/GlobalBoost,lateminer/bitcoin,DigitalPandacoin/pandacoin,mruddy/bitcoin,namecoin/namecore,jtimon/bitcoin,guncoin/guncoin,thrasher-/litecoin,paveljanik/bitcoin,dscotese/bitcoin,paveljanik/bitcoin,TheBlueMatt/bitcoin,Flowdalic/bitcoin,Xekyo/bitcoin,UFOCoins/ufo,ajtowns/bitcoin,ahmedbodi/vertcoin,stamhe/bitcoin,joshrabinowitz/bitcoin,JeremyRubin/bitcoin,joshrabinowitz/bitcoin,droark/bitcoin,FeatherCoin/Feathercoin,lateminer/bitcoin,donaloconnor/bitcoin,1185/starwels,cdecker/bitcoin,StarbuckBG/BTCGPU,wellenreiter01/Feathercoin,afk11/bitcoin,vertcoin/vertcoin,Christewart/bitcoin,vmp32k/litecoin,Anfauglith/iop-hd,alecalve/bitcoin,domob1812/huntercore,myriadteam/myriadcoin,tjps/bitcoin,jambolo/bitcoin,ppcoin/ppcoin,thrasher-/litecoin,BitzenyCoreDevelopers/bitzeny,sarielsaz/sarielsaz,wellenreiter01/Feathercoin,BTCGPU/BTCGPU,qtumproject/qtum,maaku/bitcoin,destenson/bitcoin--bitcoin,litecoin-project/litecoin,vmp32k/litecoin,bespike/litecoin,RHavar/bitcoin,Rav3nPL/bitcoin,qtumproject/qtum,domob1812/bitcoin,r8921039/bitcoin,anditto/bitcoin,Anfauglith/iop-hd,ryanofsky/bitcoin,Xekyo/bitcoin,midnightmagic/bitcoin,Xekyo/bitcoin,gmaxwell/bitcoin,jtimon/bitcoin,paveljanik/bitcoin,lateminer/bitcoin,bitcoinknots/bitcoin,Jcing95/iop-hd,Kogser/bitcoin,thrasher-/litecoin,thrasher-/litecoin,romanornr/viacoin,globaltoken/globaltoken,GlobalBoost/GlobalBoost,brandonrobertz/namecoin-core,viacoin/viacoin,apoelstra/bitcoin,yenliangl/bitcoin,Friedbaumer/litecoin,shelvenzhou/BTCGPU,kallewoof/bitcoin,dscotese/bitcoin,MazaCoin/maza,MazaCoin/maza,1185/starwels,domob1812/namecore,deeponion/deeponion,vmp32k/litecoin,jamesob/bitcoin,h4x3rotab/BTCGPU,achow101/bitcoin,maaku/bitcoin,Gazer022/bitcoin,jambolo/bitcoin,BTCGPU/BTCGPU,globaltoken/globaltoken,midnightmagic/bitcoin,jambolo/bitcoin,starwels/starwels,wellenreiter01/Feathercoin,yenliangl/bitcoin,mm-s/bitcoin,Chancoin-core/CHANCOIN,apoelstra/bitcoin,domob1812/bitcoin,Gazer022/bitcoin,n1bor/bitcoin,Gazer022/bitcoin,GlobalBoost/GlobalBoost,rnicoll/bitcoin,brandonrobertz/namecoin-core,mruddy/bitcoin,vertcoin/vertcoin,TheBlueMatt/bitcoin,1185/starwels,anditto/bitcoin,vertcoin/vertcoin,mitchellcash/bitcoin,destenson/bitcoin--bitcoin,monacoinproject/monacoin,spiritlinxl/BTCGPU,prusnak/bitcoin,prusnak/bitcoin,myriadcoin/myriadcoin,achow101/bitcoin,maaku/bitcoin,peercoin/peercoin,droark/bitcoin,rnicoll/bitcoin,DigitalPandacoin/pandacoin,maaku/bitcoin,andreaskern/bitcoin,StarbuckBG/BTCGPU,tecnovert/particl-core,ElementsProject/elements,OmniLayer/omnicore,DigitalPandacoin/pandacoin,pstratem/bitcoin,jlopp/statoshi,FeatherCoin/Feathercoin,practicalswift/bitcoin,domob1812/namecore,maaku/bitcoin,pstratem/bitcoin,tjps/bitcoin,lateminer/bitcoin,wangxinxi/litecoin,peercoin/peercoin,jnewbery/bitcoin,viacoin/viacoin,cryptoprojects/ultimateonlinecash,jtimon/bitcoin,nikkitan/bitcoin,spiritlinxl/BTCGPU,stamhe/bitcoin,jlopp/statoshi,bitbrazilcoin-project/bitbrazilcoin,Sjors/bitcoin,ericshawlinux/bitcoin,RHavar/bitcoin,gmaxwell/bitcoin,sarielsaz/sarielsaz,romanornr/viacoin,guncoin/guncoin,fujicoin/fujicoin,practicalswift/bitcoin,sipsorcery/bitcoin,GroestlCoin/GroestlCoin,Jcing95/iop-hd,Theshadow4all/ShadowCoin,Theshadow4all/ShadowCoin,prusnak/bitcoin,spiritlinxl/BTCGPU,Gazer022/bitcoin,ElementsProject/elements,spiritlinxl/BTCGPU,domob1812/huntercore,midnightmagic/bitcoin,rnicoll/bitcoin,afk11/bitcoin,UFOCoins/ufo,namecoin/namecore,jtimon/bitcoin,UFOCoins/ufo,sarielsaz/sarielsaz,21E14/bitcoin,MazaCoin/maza,trippysalmon/bitcoin,wellenreiter01/Feathercoin,jmcorgan/bitcoin,pstratem/bitcoin,untrustbank/litecoin,andreaskern/bitcoin,DigitalPandacoin/pandacoin,aspanta/bitcoin,digibyte/digibyte,jamesob/bitcoin,BitzenyCoreDevelopers/bitzeny,21E14/bitcoin,vmp32k/litecoin,mitchellcash/bitcoin,MarcoFalke/bitcoin,jlopp/statoshi,rawodb/bitcoin,litecoin-project/litecoin,BitzenyCoreDevelopers/bitzeny,bitcoinknots/bitcoin,Kogser/bitcoin,domob1812/bitcoin,kevcooper/bitcoin,tecnovert/particl-core,MarcoFalke/bitcoin,stamhe/bitcoin,Jcing95/iop-hd,MarcoFalke/bitcoin,romanornr/viacoin,peercoin/peercoin,namecoin/namecoin-core,laudaa/bitcoin,domob1812/huntercore,tecnovert/particl-core,jonasschnelli/bitcoin,pstratem/bitcoin,randy-waterhouse/bitcoin,digibyte/digibyte,rnicoll/dogecoin,sstone/bitcoin,bitcoinsSG/bitcoin,nbenoit/bitcoin,bitcoin/bitcoin,StarbuckBG/BTCGPU,untrustbank/litecoin,namecoin/namecore,Rav3nPL/bitcoin,mitchellcash/bitcoin,Christewart/bitcoin,instagibbs/bitcoin,paveljanik/bitcoin,FeatherCoin/Feathercoin,Xekyo/bitcoin,tecnovert/particl-core,instagibbs/bitcoin,AkioNak/bitcoin,GlobalBoost/GlobalBoost,MeshCollider/bitcoin,alecalve/bitcoin,ryanofsky/bitcoin,qtumproject/qtum,qtumproject/qtum,bitcoinsSG/bitcoin,tjps/bitcoin,trippysalmon/bitcoin,qtumproject/qtum,jlopp/statoshi,pataquets/namecoin-core,prusnak/bitcoin,prusnak/bitcoin,jonasschnelli/bitcoin,gmaxwell/bitcoin,jlopp/statoshi,yenliangl/bitcoin,Exgibichi/statusquo,r8921039/bitcoin,joshrabinowitz/bitcoin,rnicoll/bitcoin,cryptoprojects/ultimateonlinecash,EthanHeilman/bitcoin,jamesob/bitcoin,shelvenzhou/BTCGPU,romanornr/viacoin,shelvenzhou/BTCGPU,21E14/bitcoin,Anfauglith/iop-hd,nikkitan/bitcoin,BTCGPU/BTCGPU,RHavar/bitcoin,Chancoin-core/CHANCOIN,Flowdalic/bitcoin,r8921039/bitcoin,fujicoin/fujicoin,pataquets/namecoin-core,romanornr/viacoin,myriadcoin/myriadcoin,fanquake/bitcoin,nbenoit/bitcoin,maaku/bitcoin,Kogser/bitcoin,guncoin/guncoin,starwels/starwels,yenliangl/bitcoin,tecnovert/particl-core,x-kalux/bitcoin_WiG-B,droark/bitcoin,mb300sd/bitcoin,x-kalux/bitcoin_WiG-B,UFOCoins/ufo,myriadteam/myriadcoin,globaltoken/globaltoken,rnicoll/dogecoin,1185/starwels,MazaCoin/maza,peercoin/peercoin,ElementsProject/elements,jnewbery/bitcoin,trippysalmon/bitcoin,ericshawlinux/bitcoin,GroestlCoin/bitcoin,myriadteam/myriadcoin,myriadcoin/myriadcoin,viacoin/viacoin,achow101/bitcoin,ericshawlinux/bitcoin,particl/particl-core,nikkitan/bitcoin,cryptoprojects/ultimateonlinecash,domob1812/huntercore,pataquets/namecoin-core,mruddy/bitcoin,Rav3nPL/bitcoin,andreaskern/bitcoin,Flowdalic/bitcoin,GlobalBoost/GlobalBoost,aspanta/bitcoin,dscotese/bitcoin,sipsorcery/bitcoin,andreaskern/bitcoin,vertcoin/vertcoin,bitbrazilcoin-project/bitbrazilcoin,kallewoof/bitcoin,pstratem/bitcoin,gjhiggins/vcoincore,rawodb/bitcoin,particl/particl-core,jmcorgan/bitcoin,qtumproject/qtum,rnicoll/dogecoin,guncoin/guncoin,pstratem/bitcoin,TheBlueMatt/bitcoin,digibyte/digibyte,Friedbaumer/litecoin,BitzenyCoreDevelopers/bitzeny,simonmulser/bitcoin,laudaa/bitcoin,sebrandon1/bitcoin,tjps/bitcoin,n1bor/bitcoin,instagibbs/bitcoin,destenson/bitcoin--bitcoin,peercoin/peercoin,pataquets/namecoin-core,Kogser/bitcoin,jonasschnelli/bitcoin,laudaa/bitcoin,thrasher-/litecoin,gjhiggins/vcoincore,h4x3rotab/BTCGPU,Flowdalic/bitcoin,ppcoin/ppcoin,bitcoin/bitcoin,ahmedbodi/vertcoin,lbryio/lbrycrd,achow101/bitcoin,mm-s/bitcoin,trippysalmon/bitcoin,Exgibichi/statusquo,n1bor/bitcoin,EthanHeilman/bitcoin,midnightmagic/bitcoin,thrasher-/litecoin,wangxinxi/litecoin,shelvenzhou/BTCGPU,bitcoinknots/bitcoin,bespike/litecoin,jmcorgan/bitcoin,Chancoin-core/CHANCOIN,Kogser/bitcoin,Kogser/bitcoin,jambolo/bitcoin,globaltoken/globaltoken,myriadteam/myriadcoin,wangxinxi/litecoin,lateminer/bitcoin,jamesob/bitcoin,nbenoit/bitcoin,Jcing95/iop-hd,GlobalBoost/GlobalBoost,monacoinproject/monacoin,namecoin/namecore,1185/starwels,achow101/bitcoin,rawodb/bitcoin,lateminer/bitcoin,apoelstra/bitcoin,kallewoof/bitcoin,bespike/litecoin,jnewbery/bitcoin,dscotese/bitcoin,MeshCollider/bitcoin,practicalswift/bitcoin,namecoin/namecore,gjhiggins/vcoincore,Bushstar/UFO-Project,vmp32k/litecoin,sebrandon1/bitcoin,myriadcoin/myriadcoin,anditto/bitcoin,monacoinproject/monacoin,Kogser/bitcoin,MeshCollider/bitcoin,Christewart/bitcoin,namecoin/namecore,mb300sd/bitcoin,AkioNak/bitcoin,digibyte/digibyte,1185/starwels,mb300sd/bitcoin,globaltoken/globaltoken,Flowdalic/bitcoin,h4x3rotab/BTCGPU,tecnovert/particl-core,domob1812/bitcoin,untrustbank/litecoin,EthanHeilman/bitcoin,aspanta/bitcoin,Christewart/bitcoin,mruddy/bitcoin,Gazer022/bitcoin,sebrandon1/bitcoin,yenliangl/bitcoin,monacoinproject/monacoin,sarielsaz/sarielsaz,Jcing95/iop-hd,kevcooper/bitcoin,destenson/bitcoin--bitcoin,droark/bitcoin,bitcoinknots/bitcoin,jnewbery/bitcoin,domob1812/bitcoin,mb300sd/bitcoin,apoelstra/bitcoin,bitcoinsSG/bitcoin,kazcw/bitcoin,donaloconnor/bitcoin,fanquake/bitcoin,starwels/starwels,bitcoin/bitcoin,rawodb/bitcoin,myriadcoin/myriadcoin,Kogser/bitcoin,cdecker/bitcoin,globaltoken/globaltoken,domob1812/namecore,r8921039/bitcoin,BTCGPU/BTCGPU,cdecker/bitcoin,myriadteam/myriadcoin,particl/particl-core,Christewart/bitcoin,h4x3rotab/BTCGPU,Flowdalic/bitcoin,RHavar/bitcoin,bitbrazilcoin-project/bitbrazilcoin,MazaCoin/maza,midnightmagic/bitcoin,jnewbery/bitcoin,kevcooper/bitcoin,sipsorcery/bitcoin,rawodb/bitcoin,fanquake/bitcoin,GroestlCoin/GroestlCoin,deeponion/deeponion,BitzenyCoreDevelopers/bitzeny,andreaskern/bitcoin,paveljanik/bitcoin,randy-waterhouse/bitcoin,fujicoin/fujicoin,domob1812/bitcoin,GlobalBoost/GlobalBoost,instagibbs/bitcoin,BTCGPU/BTCGPU,ahmedbodi/vertcoin,kazcw/bitcoin,fujicoin/fujicoin,joshrabinowitz/bitcoin,aspanta/bitcoin,alecalve/bitcoin,paveljanik/bitcoin,tjps/bitcoin,sarielsaz/sarielsaz,Rav3nPL/bitcoin,bitcoin/bitcoin,namecoin/namecoin-core,Anfauglith/iop-hd,TheBlueMatt/bitcoin,spiritlinxl/BTCGPU,sstone/bitcoin,rnicoll/dogecoin,nikkitan/bitcoin,Friedbaumer/litecoin,litecoin-project/litecoin,lbryio/lbrycrd,domob1812/namecore,mitchellcash/bitcoin,bitcoin/bitcoin,JeremyRubin/bitcoin,sstone/bitcoin,particl/particl-core,shelvenzhou/BTCGPU,mb300sd/bitcoin,destenson/bitcoin--bitcoin,practicalswift/bitcoin,MeshCollider/bitcoin,Xekyo/bitcoin,andreaskern/bitcoin,rnicoll/bitcoin,dscotese/bitcoin,viacoin/viacoin,Kogser/bitcoin,ajtowns/bitcoin,gjhiggins/vcoincore,Exgibichi/statusquo,Gazer022/bitcoin,simonmulser/bitcoin,Sjors/bitcoin,particl/particl-core,shelvenzhou/BTCGPU,bitcoin/bitcoin,afk11/bitcoin,kallewoof/bitcoin,untrustbank/litecoin,nbenoit/bitcoin,trippysalmon/bitcoin,JeremyRubin/bitcoin,pataquets/namecoin-core,Sjors/bitcoin,OmniLayer/omnicore,Exgibichi/statusquo,litecoin-project/litecoin,Kogser/bitcoin,apoelstra/bitcoin,ryanofsky/bitcoin,RHavar/bitcoin,kazcw/bitcoin,ericshawlinux/bitcoin,StarbuckBG/BTCGPU,OmniLayer/omnicore,r8921039/bitcoin,DigitalPandacoin/pandacoin,afk11/bitcoin,MarcoFalke/bitcoin,cdecker/bitcoin,r8921039/bitcoin,ppcoin/ppcoin,domob1812/huntercore,yenliangl/bitcoin,practicalswift/bitcoin,rnicoll/bitcoin,donaloconnor/bitcoin,droark/bitcoin,kazcw/bitcoin,Bushstar/UFO-Project,jmcorgan/bitcoin,kevcooper/bitcoin,ericshawlinux/bitcoin,sipsorcery/bitcoin,jambolo/bitcoin,Anfauglith/iop-hd,brandonrobertz/namecoin-core,mb300sd/bitcoin,bitcoinknots/bitcoin,sipsorcery/bitcoin,kevcooper/bitcoin,achow101/bitcoin,namecoin/namecoin-core,CryptArc/bitcoin,fanquake/bitcoin,bitcoinsSG/bitcoin,Sjors/bitcoin,brandonrobertz/namecoin-core,fanquake/bitcoin,n1bor/bitcoin,gmaxwell/bitcoin,mm-s/bitcoin,JeremyRubin/bitcoin,jmcorgan/bitcoin,ryanofsky/bitcoin,UFOCoins/ufo,myriadcoin/myriadcoin,randy-waterhouse/bitcoin,simonmulser/bitcoin,Bushstar/UFO-Project,StarbuckBG/BTCGPU,Chancoin-core/CHANCOIN,Christewart/bitcoin,Friedbaumer/litecoin,ahmedbodi/vertcoin,x-kalux/bitcoin_WiG-B,DigitalPandacoin/pandacoin,lbryio/lbrycrd,litecoin-project/litecoin,fujicoin/fujicoin,rawodb/bitcoin,GroestlCoin/GroestlCoin,aspanta/bitcoin,sstone/bitcoin,kallewoof/bitcoin,ElementsProject/elements,ericshawlinux/bitcoin,ryanofsky/bitcoin,jlopp/statoshi,brandonrobertz/namecoin-core,Xekyo/bitcoin,CryptArc/bitcoin,donaloconnor/bitcoin,laudaa/bitcoin,wangxinxi/litecoin,nbenoit/bitcoin,sebrandon1/bitcoin,vertcoin/vertcoin,Rav3nPL/bitcoin,stamhe/bitcoin,Bushstar/UFO-Project,digibyte/digibyte,jamesob/bitcoin,laudaa/bitcoin,vertcoin/vertcoin,aspanta/bitcoin,Rav3nPL/bitcoin,TheBlueMatt/bitcoin,jtimon/bitcoin,anditto/bitcoin,particl/particl-core,MeshCollider/bitcoin,Theshadow4all/ShadowCoin,guncoin/guncoin,JeremyRubin/bitcoin,CryptArc/bitcoin,ajtowns/bitcoin,GroestlCoin/bitcoin,GroestlCoin/GroestlCoin,ppcoin/ppcoin,UFOCoins/ufo,mitchellcash/bitcoin,ElementsProject/elements,x-kalux/bitcoin_WiG-B,instagibbs/bitcoin,viacoin/viacoin,GroestlCoin/bitcoin