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.