Temporary measure, until we have VFS-level select() support. Closes https://github.com/espressif/esp-idf/issues/1141