userspace/sysdig: flush cout to print the event

When the format is JSON, the last event received is not printed
until another event is processed or sysdig terminates.