mailbox_client: revise message receive for race-free use

The previous structure for receiving mailbox messages was racey--it
allowed a reply to be sent without a receive posted. Rewrite the api
to ensure this cannot happen.

Fix: 300251123

Change-Id: Ied0e697f71c88de10e53217ff2ee02af28263673
2 files changed