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?

LogPrintf(("%s " + fmt).c_str(), GetDisplayName(), parameters...);
    };
    
    bool UpgradeWallet(int version, bilingual_str& error);
    
    std::set<ScriptPubKeyMan*> GetActiveScriptPubKeyMans() const;
    
    std::set<ScriptPubKeyMan*> GetAllScriptPubKeyMans() const;
    
    ScriptPubKeyMan* GetScriptPubKeyMan(const OutputType& type, bool internal) const;
    
    std::set<ScriptPubKeyMan*> GetScriptPubKeyMans(const CScript& script) const;
    
    ScriptPubKeyMan* GetScriptPubKeyMan(const uint256& id) const;
    
    std::unique_ptr<SigningProvider> GetSolvingProvider(const CScript& script) const;
    std::unique_ptr<SigningProvider> GetSolvingProvider(const CScript& script, SignatureData& sigdata) const;
    
    LegacyScriptPubKeyMan* GetLegacyScriptPubKeyMan() const;
    LegacyScriptPubKeyMan* GetOrCreateLegacyScriptPubKeyMan();
    
    void SetupLegacyScriptPubKeyMan();
    const CKeyingMaterial& GetEncryptionKey() const override;
    bool HasEncryptionKeys() const override;
    
    int GetLastBlockHeight() const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)