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::string coinbaseAddress = coinbaseKey.GetPubKey().GetID().ToString();
    
    
    std::map<CTxDestination, std::vector<COutput>> list;
    {
        LOCK(wallet->cs_wallet);
        list = ListCoins(*wallet);
    }
    BOOST_CHECK_EQUAL(list.size(), 1U);
    BOOST_CHECK_EQUAL(std::get<PKHash>(list.begin()->first).ToString(), coinbaseAddress);
    BOOST_CHECK_EQUAL(list.begin()->second.size(), 1U);
    
    BOOST_CHECK_EQUAL(50 * COIN, GetAvailableBalance(*wallet));
    
    
    
    
    AddTx(CRecipient{GetScriptForRawPubKey({}), 1 * COIN, false });
    {
        LOCK(wallet->cs_wallet);
        list = ListCoins(*wallet);