netlink: fix routing logic

Masquerade and routing tasks should be performed for each
message independently, not only for the first message in
a batch.