lw-ip: Add partial fstat vfs support to set st_mode Closes IDFGH-5459 See merge request espressif/esp-idf!14854