simpleperf: wake up per sample in monitor cmd.

It is to show samples in real time.
Also flush stdout after printing each sample.

Bug: none
Test: run simpleperf_unit_test.
Change-Id: I7de8ae82deedb76d736c7635f6818ba7b6f440bc
3 files changed