LWIP: Make system timeout POSIX compliant (required by lwip_select)
LWIP: Make system timeout POSIX compliant (required by lwip_select)

`lwip_select` uses `sys_arch_sem_wait` function making the assumption that it
is POSIX compliant. This commit makes that function wait for at least
timeout (milliseconds), as required by POSIX specification.

* Relates to https://github.com/espressif/esp-idf/issues/7514

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf