TypeStore should be thread-safe