linux_inet_diag: get rid of alloca usage