Add SchemaRegistry.initializeInThread method.