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?

{
    
    const std::string name = ->GetName();
    {
        LOCK(g__release_mutex);
        auto it = g_unloading__set.insert(name);
        assert(it.second);
    }
    
    
    
    ->NotifyUnload();
    
    .reset();
    {
        WAIT_LOCK(g__release_mutex, lock);
        while (g_unloading__set.count(name) == 1) {
            g__release_cv.wait(lock);
        }
    }
}
 {
std::shared_ptr<CWaet> LoadWaetInternal(WaetContext& context, const std::string& name, std::optional<bool> load_on_start, const DatabaseOptions& options, DatabaseStatus& status, bilingual_str& error, std::vector<bilingual_str>& warnings)