Added  initial threadsafe mutex lock's in queue