Added missing synchronization in Invitation::recv