Atomic reference implementation for .NET