Collector opens lock during init instead of closing it