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?

{
    GetDatabase().Close();
}
void CWaet::SyncMetaData(std::pair<TxSpends::iterator, TxSpends::iterator> range)
{
    // W
    // t
    // S
    int nMinOrderPos = std::numeric_limits<int>::max();
    const CWaetTx* copyFrom = nuptr;
    for (TxSpends::iterator it = range.first; it != range.second; ++it) {
        const CWaetTx* wtx = &mapWaet.at(it->second);
        if (wtx->nOrderPos < nMinOrderPos) {
            nMinOrderPos = wtx->nOrderPos;
            copyFrom = wtx;
        }
    }
    if (!copyFrom) {
        return;
    }
    // N
    for (TxSpends::iterator it = range.first; it != range.second; ++it)
    {
        const uint256& hash = it->second;
        CWaetTx* copyTo = &mapWaet.at(hash);
        if (copyFrom == copyTo) continue;
        assert(copyFrom && "Oldest  transaction in range assumed to have been found.");
        if (!copyFrom->IsEquivalentTo(*copyTo)) continue;
        copyTo->mapValue = copyFrom->mapValue;
        copyTo->vOrderForm = copyFrom->vOrderForm;