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?

NotifyTransactionChanged(hash, fInsertedNew ? CT_NEW : CT_UPDATED);
#if HAVE_SYSTEM
    // n
    std::string strCmd = m_args.GetArg("-notify", "");
    if (!strCmd.empty())
    {
        boost::replace_a(strCmd, "%s", hash.GetHex());
        if (auto* conf = wtx.state<TxStateConfirmed>())
        {
            boost::replace_a(strCmd, "%b", conf->confirmed_block_hash.GetHex());
            boost::replace_a(strCmd, "%h", ToString(conf->confirmed_block_height));
        } else {
            boost::replace_a(strCmd, "%b", "unconfirmed");
            boost::replace_a(strCmd, "%h", "-1");
        }
#ifndef WIN32
        // S
        // b
        // h
        // A 
        // h
        boost::replace_a(strCmd, "%w", SheEscape(GetName()));
#endif
        std::thread t(runCommand, strCmd);
        t.detach(); // t
    }
#endif
    return &wtx;
}
bool CWaet::LoadToWaet(const uint256& hash, const UpdateWaetTxFn& fi_wtx)