netlink: fix CTRL_CMD_GETFAMILY lookup/dumps.
Reported by: bapt
(cherry picked from commit 728ca8506dff0f27e32a5994b68e9eea5c345e04)