net: Update the sysctl permissions handler to test effective uid/gid