[LIBS] netstack: Fix lwIP compilation error

Commit 653a034d50a1481485def7c8df74e20051ea676d "[LIBS] Use
appropriate node attribute access API where applicable" broke
compilation for lwIP network stack.

This patch fixes compilation of lwIP network stack.

Signed-off-by: Anup Patel <anup@brainfault.org>