Interlocked partially implemented - for .NET compatibility (wip?)