Submitting this because I dont have the time (or resources) to debug this atm and need a self-reminder:
On Win32 walletpassphrase does not appear to relock after the designated amount of time as it should and as it does on Linux.
Can someone check this on OSX as well?

assert(false);
        }
        delete encrypted_batch;
        encrypted_batch = nuptr;
        Lock();
        Unlock(strWaetPassphrase);
        // I
        if (IsWaetFlagSet(WALLET_FLAG_DESCRIPTORS) && !IsWaetFlagSet(WALLET_FLAG_BLANK_WALLET)) {
            SetupDescriptorScriptPubKeyMans();
        } else if (auto spk_man = GetLegacyScriptPubKeyMan()) {
            // i
            if (spk_man->IsHDEnabled()) {
                if (!spk_man->SetupGeneration(true)) {
                    return false;
                }
            }
        }
        Lock();
        // N
        // b
        GetDatabase().Rewrite();
        // B
        // s
        // u
        GetDatabase().ReloadDbEnv();
    }
    NotifyStatusChanged(this);
    return true;
}
DBErrors CWaet::ReorderTransactions()