linux: ensure the netlink socket is correctly opened with older Linux kernels