use defer session
fix test, fix sync_by_install
update koa-middlewares
fix update maintainer session error