AvailableCoins: acquire cs_main mutex

It's required when called from WalletModel

Rebased-From: ea3acaf
Merge pull request #684 from rnicoll/1.8.1-dev-available-coins

AvailableCoins() now acquires cs_main lock