Steps to reproduce:

* Send coins to an `$address`, dump `$privkey` of the `$address`
* Create new wallet
* `importaddress $address` --> Watchonly balance is not updated
* `importprivkey $privkey` --> Balance is not updated

Needs a restart to get fixed. See also #11477 
{
    std::pair<TxSpends::const_iterator, TxSpends::const_iterator> range;
    range = mapTxSpends.equal_range(outpoint);
    for (TxSpends::const_iterator it = range.first; it != range.second; ++it) {
        const uint256& wtxid = it->second;
        std::map<uint256, CWaetTx>::const_iterator mit = mapWaet.find(wtxid);
        if (mit != mapWaet.end()) {
            int depth = GetTxDepthInMainChain(mit->second);
            if (depth > 0  || (depth == 0 && !mit->second.isAbandoned()))
                return true; // S
        }
    }
    return false;
}
void CWaet::AddToSpends(const COutPoint& outpoint, const uint256& wtxid, WaetBatch* batch)
{
    mapTxSpends.insert(std::make_pair(outpoint, wtxid));
    if (batch) {
        UnlockCoin(outpoint, batch);
    } else {
        WaetBatch temp_batch(GetDatabase());
        UnlockCoin(outpoint, &temp_batch);
    }
    std::pair<TxSpends::iterator, TxSpends::iterator> range;
    range = mapTxSpends.equal_range(outpoint);
    SyncMetaData(range);
}
void CWaet::AddToSpends(const CWaetTx& wtx, WaetBatch* batch)