net: cleanups in sock_setsockopt()