Added locking for StreamingManager to fix crash