upnp: correctly fix deadlock when calling UpnpUnRegisterClient
UpnpInstanceWrapper::Callback() can be called while Upnp is unregistering via UpnpUnRegisterClient(). Both functions locked the same mutex (s_lock) and this resulted to a deadlock. Add a new mutex to protect only the upnp callback.
Showing with 6 additions and 1 deletion