posix: fix nfds == 0 check, so select() can be used to sleep.