iothread: add poll-grow and poll-shrink parameters