Safely assemble the tool registry when optional tools have circular dependencies or heavy side effects.