Use DEBUG_THREAD_SELF when using DEBUG_TRACE with pthread IDs