Unlock mutex when we find a matching connection