[client] Improve file chunking and worktree monitoring.

Linux:
* Improve inotify events handling. Auto monitor a dir once it's created.
* No need to refresh monitor after commit.

Chunking:
* If file size changed while chunking, return failure.
* Use total size of blocks as file size for seafile object.