use correct conditional to choose between different DEBUG_THREAD_SELF macros