Note: Still investigating. WIP.
Add missing cs_wallet locks in GetAvailableCredit, GetAvailableWatchOnlyCredit and CreateWalletFromFile:
GetAvailableCreditandGetAvailableWatchOnlyCreditread the variablesmapTxSpendsandmapWalletvia the call toIsSpent(...)without holdingcs_wallet.CreateWalletFromFilereads the variablenTimeFirstKeywithout holdingcs_wallet.