Koa middleware to sleep or delay