If you disable access to user profiles and the people in the walled community can post only in categories that are accessible only by those people, then you might not worry about who can PM who, since they won’t know who else to PM.
But if you really want them to not to be able to see each other, setting up a separate forum is probably easier.