Re-add missing, potentially problematic std::ref.