hal/debug/local_print.c: add fflush to log function

This avoid buffering the zmq message and hiding
our debug