Thread issue in Newtonsoft.Json.Serialization.DefaultMappingResolver
description
in "public virtual JsonMemberMappingCollection ResolveMappings(Type type)"
_typeMemberMappingsCache's TryGetValue is not thread safe, and should not be used outside of the lock.
If we only read the collection, then we are fine, but since there is a chance that we are modifying the collection in one thread (inside the lock) as we are reading it in another (outside the lock), data can get corrupted (reads can fail, or return incorrect data).