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?

// I
            // a
            MarkInputsDirty(wtx.tx);
        }
    }
    return true;
}
void CWaet::MarkConflicted(const uint256& hashBlock, int conflicting_height, const uint256& hashTx)
{
    LOCK(cs_);
    int conflictconfirms = (m_last_block_processed_height - conflicting_height + 1) * -1;
    // I
    // t
    // f
    // c
    if (conflictconfirms >= 0)
        return;
    // D
    WaetBatch batch(GetDatabase(), false);
    std::set<uint256> todo;
    std::set<uint256> done;
    todo.insert(hashTx);
    while (!todo.empty()) {
        uint256 now = *todo.begin();
        todo.erase(now);
        done.insert(now);
        auto it = mapWaet.find(now);
        assert(it != mapWaet.end());
        CWaetTx& wtx = it->second;
        int currentconfirm = GetTxDepthInMainChain(wtx);