Add cs_main lock to AddToWallet()
Add cs_main lock to AddToWallet()

AddToWallet() must have cs_main locked because it does a lookup
on mapBlockIndex.

Also, AddToWalletIfInvolvingMe then also needs to have both
cs_main and cs_wallet locked in order to maintain locking order
when calling AddToWallet().

BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited