[SystemZ][ZOS] Fix __libcpp_thrad_isnull()

Previous pthread revision https://reviews.llvm.org/D91875 missed a small change for `__libcpp_thrad_isnull()` required for z/OS.

Reviewed By: zibi

Differential Revision: https://reviews.llvm.org/D96302

GitOrigin-RevId: 48fcce1aea9e783c3fe64482f06a965707e75990
diff --git a/include/__threading_support b/include/__threading_support
index 45e3016..46438b7 100644
--- a/include/__threading_support
+++ b/include/__threading_support
@@ -500,7 +500,7 @@
 
 // Thread
 bool __libcpp_thread_isnull(const __libcpp_thread_t *__t) {
-  return *__t == __libcpp_thread_t();
+  return __libcpp_thread_get_id(__t) == 0;
 }
 
 int __libcpp_thread_create(__libcpp_thread_t *__t, void *(*__func)(void *),