I just noticed that in newer GNU C library, our method to detect if an application is single threaded or not doesn't work (not supported) any more.
Applications should check the __libc_single_threaded variable declared in <sys/single_threaded.h> instead.
We need to fix our implementation.