Calling fflush in kafka_stats_cb

This ensures that the JSON statistics file contains only full
and valid JSON lines.

Change-Id: Id0927dc7c0c257f061617fc1e30a047245e56ad3