Minor nit: `WT_ASSERT` maps to `WT_UNUSED(session)` when not doing diagnostics, so this shouldn't be necessary.