[libduo] Convert _BIO_wait select usage to poll

When using libduo on a machine with very high fd load, select causes the process to crash because it goes beyond the fd limit that the kernel may be compiled for.