Only kSynchronizedReadWrite fmqs should be able to use blocking methods.

Add static asserts to ensure that only MessageQueues with flavor
kSynchronizedReadWrite can use blocking read and write operations.

Also add logging messages to indicate failures on blocking reads/ writes
when no EventFlag is configured / provided.

Bug: 63800381

Test: change read call to  readBlocking call in
      TEST_F(UnSynchronizedWrite, WriteWhenFull2) in tests/mq_test.cpp.
      asserts and fails to build.

Change-Id: I0ff0e71940097d3b1c5a596822c996dd7d51ba24
1 file changed