Some script in C to show mutex necessity when some threads try to write to a critical ressource