split out routine for checking if a syscall is in a net-related group