uloop: allow specifying a timeout for uloop_run()