Improve calculation of seafdir id.

Make sure dirent->mode is little endian.
[client] Improve getfs-proc.

* Don't check fs objects more than once locally.
* Check integrity of file objects when clone.