Fix bugs in transfer protocols.

* Send update/response properly before ccnet_processor_done().
* Fix file handle leak in recv_blocks().
* Don't access processor memory in worker thread.
* Close data socket if error occurs in accept_connection().
* Use tdata->state instead of processor->state.
* Disable deprecated processors in seaf-server.
[win] Fix bug of handling files larger than 4GB.

g_lstat() returns 32-bit struct stat on Windows, use _wstat64() instead.
Fix a bug in index code.