CDK-203: Add sync to DatasetWriters.

For Avro and CSV FileSystem appenders, sync is implemented as flush
followed by hsync. For Parquet, there is no implementation because there
is no way to flush or sync parquet files. For HBase, sync calls flush.

This adds tests for CSV and Avro sync behavior, which doesn't currently
work for the local FS, but does for HDFS.
Opened [CDK-594](https://issues.cloudera.org/browse/)