Removed the lock in dose_com.
Using multithread safe operations for the TransmitQueueOverflow variable.