update refinements example to ensure that the class_delegates thread collection exists