Don't use __libc_locking_needed, use multiple_threads field in TCB.