MessageBuffer: add Clear()

Provide the ability to clear a MessageBuffer, and
the requisite tests for said ability.

Bug: 31653003
Test: ./runtests.sh (on bullhead)
Change-Id: I4f24e1dbbf56d9f5f63219829a4b55145d183773
3 files changed