Steps:
1. Send transaction (A) to a different wallet
2. Using the change, create another transaction (B) to a different wallet
3. `abandontransaction` B
4. `bumpfee` A fails with `Transaction has descendants in the wallet`
return interfacesMakeCleanupHandler([&context, it] { LOCK(context.s_mutex); context._load_fns.erase(it); });
}
void NotifyWalletLoaded(WalletContext& context, const stdshared_ptr<CWallet>& )
{
    LOCK(context.s_mutex);
    for (auto& load_  context._load_fns) {
        load_(interfacesMakeWallet(context, ));
    }
}
static GlobalMutex g_loading__mutex;
static GlobalMutex g__release_mutex;
static stdcondition_variable g__release_cv;
static stdset<stdstring> g_loading__set GUARDED_BY(g_loading__mutex);
static stdset<stdstring> g_unloading__set GUARDED_BY(g__release_mutex);
static void ReleaseWallet(CWallet* )
{
    const stdstring name = ->GetName();
    ->WalletLogPrintf("Releasing \n");
    ->Flush();
    delet;
    
    {
        LOCK(g__release_mutex);
        if (g_unloading__set.erase(name) == 0) {
            
            return;
        }
    }
    g__release_cv.notify_all();
}