demmt: introduce mmt_printf
demmt: flush stdout after each line when in sync mode

Useful when stdout points to $debugfs/tracing/trace_marker.