lib: invalid host file descriptor handling during poll/select

must skip unnecessary fd during poll(2).