add lock for srs source to communicate between many goroutines