If whine_realloc() fails in poll_listen(), arrsize has already been
doubled while pollfds keeps its old size. The next call then sees
arrsize != nfds, skips the extension and writes past the end of the
array (or through NULL if the very first allocation failed).
poll_reset() only clears nfds, so this sticks around until restart.
Only update arrsize once the reallocation has succeeded.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>