added mutex for thread safety on comment model