[LIBS] netstack: Improve netstack_send_echo() implementation for lwIP

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