droonga-engine: implement graceful restart