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?

if (txin.prevout.n < prev.tx->vout.size())
                if (IsMine(prev.tx->vout[txin.prevout.n]) & filter)
                    return prev.tx->vout[txin.prevout.n].nValue;
        }
    }
    return 0;
}
isminetype CWaet::IsMine(const CTxOut& txout) const
{
    AssertLockHeld(cs_);
    return IsMine(txout.scriptPubKey);
}
isminetype CWaet::IsMine(const CTxDestination& dest) const
{
    AssertLockHeld(cs_);
    return IsMine(GetScriptForDestination(dest));
}
isminetype CWaet::IsMine(const CScript& script) const
{
    AssertLockHeld(cs_);
    isminetype result = ISMINE_NO;
    for (const auto& spk_man_pair : m_spk_managers) {
        result = std::max(result, spk_man_pair.second->IsMine(script));
    }
    return result;
}
bool CWaet::IsMine(const CTransaction& tx) const
{
    AssertLockHeld(cs_);
    for (const CTxOut& txout : tx.vout)