[Orc] Use std::string to capture name by value.