The idea is that this assignment can only succeed if you are able to grab the lock. So in theory there can never be more than one thread that can overwrite _lockStream.