Add missing FindNode prototype to net.h

Came up in #4567
Also make the argument a const std::string & instead of pass-by-value.