Added a mutex for receive in TopicHandler.