Optimize cache flush for console string

When writing a fully string no need to flush cache on every character; but
only one time when done.
CuBox-i printenv took about 13 seconds to print the whole environment on HDMI
out, where with this patch it becomes a snap.

Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>