Added a mutex to control server fifo access.