C# Parallel safe managed memory class with serialization support.