This also fixes an issue detected by `tests/lwip_sock_udp` when both IPv4 and IPv6 are enabled.
sock_*_recv_buf()