Jussi Laako reported seeing a busy loop when Thunderbird or mobile users
connected to the Alpine based imapd mail server. One of them is doing
non-blocking I/O and the added retry short-circuited the select call
and retry causing a busy loop. Simplify the retry logic while there.
tested by procter, with help from beck