Fsync log directory when file gets changed.

https://issues.apache.org/jira/browse/ZOOKEEPER-2003