There have been some changes and updating nxdk seems required now at least on Ubuntu 22.04.
In file included from /home/wsl/Projects/nxdk_pgraph_tests/third_party/nxdk/lib/pdclib/functions/_dlmalloc/malloc.c:605:
/home/wsl/Projects/nxdk_pgraph_tests/third_party/nxdk/lib/pdclib/platform/xbox/include/threads.h:23:2: error: __STDC_NO_THREADS__ defined but <threads.h> included. Something is wrong about your setup.
#error __STDC_NO_THREADS__ defined but <threads.h> included. Something is wrong about your setup.
^
There have been some changes and updating nxdk seems required now at least on Ubuntu 22.04.