unix: don't run i/o callbacks after prepare callbacks

Run them after timers, like Windows does.

Closes #1317