[server] Improve performance of block list checking.

* If it's a download, don't check block list.
* For upload, check block list in a worker thread.