Add name to threads, mutexes and condition variables