fixed race condition when creating networks and firewalls

when creating a multinode cluster where all nodes are in the same group, there was a race condition where all node creating threads would verify the group's network didn't exist and would try to create it.

of course only one would and the rest would throw errors.

the fix is trivial (add synchronized)