PIOS COM: make the interface thread safe

Currently the interface to the FIFO buffer is not thread
safe for multiple threads sending and receiving. This adds
a semaphore on those interfaces.
Merge pull request #1181 from peabody124/pios_com_thread

PIOS COM: make the interface thread safe