esp_netif: fix get/set hostname API to reflect user settings (v4.1) See merge request espressif/esp-idf!11360