RFC: add flush_cstdio function

This adds `flush_cstdio()` function, which calls `fflush(stdout)` and `fflush(stderr)` in C.   This is needed in order to flush any output from external C code.

(For example, I need this in IJulia in order to make sure external `printf` output is captured after evaluating an input cell.)