upnp: fix racy redeclaration of function by bringing back this hack
upnp: fix racy redeclaration of function by bringing back this hack

opnsense/core,opnsense/core,opnsense/core,opnsense/core,opnsense/core,opnsense/core