uloop: add support for integrating with a different event loop