CRAS: Add underrun event detection in cras_iodev

Use audio_thread_monitor to take a snapshot for audio thread when
underrun, severe_underrun happen.

BUG=chromium:866240
TEST=Apply full patch set to run
     $ cras_test_client --playback_file /dev/zero --playback_delay_us
     10000
     and input 'i' and 'key_enter' to cause underrun event. Then using
     $ cras_test_client --dump_e"
     could see the audio thread snapshot for that event.

Change-Id: I5cee8c12bf26f86e13f9c993bc5b95f3d135f5be
Reviewed-on: https://chromium-review.googlesource.com/1148088
Commit-Ready: Chih-Yang Hsia <paulhsia@chromium.org>
Tested-by: Chih-Yang Hsia <paulhsia@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2 files changed