net: add validation for the socket syscall protocol argument