common/proxy.scm (proxy-ping): Fix a deadlock.

* common/proxy.scm (proxy-ping): Catch `proxy-error'.  Unlock the
  mutex if an error occured to prevent the deadlock with
  `proxy-stop'.
  (proxy-stop): Add a debug trace.