net: socket: rework compat_ifreq_ioctl()