message: [Wallet] Unlock spent outputs
  backports bitcoin/bitcoin
diff: @@ -493,6 +493,8 @@ bool CWallet::IsSpent(const uint256& hash, unsigned int n) const
  void CWallet::AddToSpends(const COutPoint& outpoint, const uint256& wtxid)
  {
  mapTxSpends.insert(std::make_pair(outpoint, wtxid));
  + setLockedCoins.erase(outpoint);
  +
  std::pair<TxSpends::iterator, TxSpends::iterator> range;
  range = mapTxSpends.equal_range(outpoint);
  SyncMetaData(range);
  