[server] Improve syncing performance.

* reduce db accesses in sync-repo-slave-proc.
* Increase default mysql connection pool size to 100.
* Increase default file syncing thread pool size to 500.