esp-netif/lw-ip: Make dependencies one-directional Closes IDF-4459, IDF-4460, IDF-1099, and IDFGH-6287 See merge request espressif/esp-idf!18084