Merged two locks in PendingInvitationRegistry

In a moment of clarity, thought about how much more complicated the
code was than it needed to be just to maintain concurrency between
requests and invites. It’s not overly important atm.

Also, rewrote addInvitation and addRequest to take this into account.