This is merely test code to provide an example for this article.

Basically it shows that mutexes scope is important to keep as valid every variables derived from shared data