The type is now immutable, so the compiler ensures it's thread-safe.
For CSDK-379. Extracted from #1795 to make it easier to review this in isolation.