Fsync log directory when file gets changed.

https://issues.apache.org/jira/browse/ZOOKEEPER-2003
Merge pull request #107 from EasonLiao/fsync_dir

Fsync directory when files are changed