backend: split queue io_u event handling into helper