poll: Make handling of fds array actually dynamic