message: Fix wallet bugs: spending coinstake before maturity, and GetAddressBalances()
diff: @@ -2041,7 +2041,7 @@ void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed, const
  if (fOnlyConfirmed && !pcoin->IsTrusted())
  continue;
  - if (pcoin->IsCoinBase() && pcoin->GetBlocksToMaturity() > 0)
  + if ((pcoin->IsCoinBase() || pcoin->IsCoinStake()) && pcoin->GetBlocksToMaturity() > 0)
  continue;
  int nDepth = pcoin->GetDepthInMainChain();
  @@ -3470,7 +3470,7 @@ std::map<CTxDestination, CAmount> CWallet::GetAddressBalances()
  if (!pcoin->IsTrusted())
  continue;
  - if (pcoin->IsCoinBase() && pcoin->GetBlocksToMaturity() > 0)
  + if ((pcoin->IsCoinBase() || pcoin->IsCoinStake()) && pcoin->GetBlocksToMaturity() > 0)
  continue;
  int nDepth = pcoin->GetDepthInMainChain();
  