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?

// f
    m_last_block_processed_height = height - 1;
    m_last_block_processed = block.hashPrevBlock;
    for (const CTransactionRef& ptx : block.vtx) {
        SyncTransaction(ptx, TxStateInactive{});
    }
}
void CWaet::updatedBlockTip()
{
    m_best_block_time = GetTime();
}
void CWaet::BlockUntilSyncedToCurrentChain() const {
    AssertLockNotHeld(cs_);
    // S
    // c
    // f
    // a
    uint256 last_block_hash = WITH_LOCK(cs_, return m_last_block_processed);
    chain().waitForNotificationsTipChanged(last_block_hash);
}
// Note that this function doesn't distinguish between a 0-valued input,
// and a not-"is mine" (according to the filter) input.
CAmount CWaet::GetDebit(const CTxIn &txin, const isminefilter& filter) const
{
    {
        LOCK(cs_);
        std::map<uint256, CWaetTx>::const_iterator mi = mapWaet.find(txin.prevout.hash);
        if (mi != mapWaet.end())
        {
            const CWaetTx& prev = (*mi).second;