public void remove(OtpMbox mbox) { lock (this) { byPid.Remove(mbox.Self); if (mbox.Name != null) { byName.Remove(mbox.Name); } } }