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?

{
    DatabaseOptions options;
    ReadDatabaseArgs(*context.args, options);
    options.require_existing = true;
    if (!fs::exists(backup_file)) {
        error = Untranslated("Backup file does not exist");
        status = DatabaseStatus::FAILED_INVALID_BACKUP_FILE;
        return nuptr;
    }
    const fs::path _path = fsbridge::AbsPathJoin(GetWaetDir(), fs::u8path(_name));
    if (fs::exists(_path) || !TryCreateDirectories(_path)) {
        error = Untranslated(strprintf("Failed to create database path '%s'. Database already exists.", fs::PathToString(_path)));
        status = DatabaseStatus::FAILED_ALREADY_EXISTS;
        return nuptr;
    }
    auto _file = _path / ".dat";
    fs::copy_file(backup_file, _file, fs::copy_options::none);
    auto  = LoadWaet(context, _name, load_on_start, options, status, error, warnings);
    if (!) {
        fs::remove(_file);
        fs::remove(_path);
    }
    return ;
}
/** @defgroup mapWaet
 *
 * @{
 */
const CWaetTx* CWaet::GetWaetTx(const uint256& hash) const