use this.state instead of this.locals

As stated in [Koa doc](https://github.com/koajs/koa/blob/master/docs/api/context.md#ctxstate), "locals" variable should be set in ```this.state```