Changing the scope of the locking for XThins
Changing the scope of the locking for XThins

Rather that using a cs_main lock we can use mempool.cs which
is more granular in scope.  Also we hold the lock during the time
we make mempool requests which prevents any process from potentially
grabbing the lock while we're building the xthin
and thereby slowing down xthin requests.

marcusdiaz/BitcoinUnlimited,AllanDoensen/BitcoinUnlimited,Bitcoin-com/BUcash,AllanDoensen/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Bitcoin-com/BUcash,AllanDoensen/BitcoinUnlimited,BTCfork/hardfork_prototype_1_mvf-bu,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,AllanDoensen/BitcoinUnlimited,AllanDoensen/BitcoinUnlimited,marlengit/hardfork_prototype_1_mvf-bu,BTCfork/hardfork_prototype_1_mvf-bu,cddjr/BitcoinUnlimited,marlengit/BitcoinUnlimited,SartoNess/BitcoinUnlimited,arruah/ensocoin,marlengit/BitcoinUnlimited,cddjr/BitcoinUnlimited,BTCfork/hardfork_prototype_1_mvf-bu,marlengit/hardfork_prototype_1_mvf-bu,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,marcusdiaz/BitcoinUnlimited,SartoNess/BitcoinUnlimited,SartoNess/BitcoinUnlimited,arruah/ensocoin,Bitcoin-com/BUcash,marlengit/BitcoinUnlimited,BTCfork/hardfork_prototype_1_mvf-bu,BTCfork/hardfork_prototype_1_mvf-bu,krzysztofwos/BitcoinUnlimited,marlengit/hardfork_prototype_1_mvf-bu,SartoNess/BitcoinUnlimited,cddjr/BitcoinUnlimited,cddjr/BitcoinUnlimited,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,krzysztofwos/BitcoinUnlimited,krzysztofwos/BitcoinUnlimited,SartoNess/BitcoinUnlimited,krzysztofwos/BitcoinUnlimited,marlengit/BitcoinUnlimited,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,marlengit/hardfork_prototype_1_mvf-bu,Bitcoin-com/BUcash,arruah/ensocoin,marcusdiaz/BitcoinUnlimited,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,arruah/ensocoin,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,SartoNess/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BTCfork/hardfork_prototype_1_mvf-bu,marlengit/hardfork_prototype_1_mvf-bu,marcusdiaz/BitcoinUnlimited,Bitcoin-com/BUcash,Justaphf/BitcoinUnlimited,krzysztofwos/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,marcusdiaz/BitcoinUnlimited,ftrader-bitcoinunlimited/hardfork_prototype_1_mvf-bu,BitcoinUnlimited/BitcoinUnlimited,marlengit/BitcoinUnlimited,krzysztofwos/BitcoinUnlimited,arruah/ensocoin,SartoNess/BitcoinUnlimited,marlengit/hardfork_prototype_1_mvf-bu,Justaphf/BitcoinUnlimited,cddjr/BitcoinUnlimited,arruah/ensocoin,marlengit/BitcoinUnlimited,marcusdiaz/BitcoinUnlimited,AllanDoensen/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Bitcoin-com/BUcash,cddjr/BitcoinUnlimited