tevent: make sure we cleanup the array passed to poll() after deleting an event