netlink/route: validate family attribute
PR: 283818 (cherry picked from commit cdacb12065e4d85416655743da5bc6b17a9d9119)