hepa: use atomics for lastSeq. (#560)
Fixes data race. Was probably harmless in practice, as these values are
best-effort anyway, but keeping the race detector clean and happy when
engaged is highly valuable for maintainability in the long run.
Some comments attached about the field's concurrency.