[thread_locks] CMake: list for compilation unit and generic loop to compile
[thread_locks] CMake: add color diagnostic for GCC
[thread_locks] c++: add the wrong counter implementation

* not thread safe
* example of race condition