Use atomics for session operations.