Common lib: implement BufferedLogWriter::Sync() method. The Sync() method blocks until all outstanding data write completes, unlike Flush() that only schedules outstanding data, if any, write, and returns.