configure: Use AC_CHECK_FUNCS to define HAVE_GETTID
VKD3D_CHECK_FUNC does not use a fake prototype (char gettid(void);) and does not include <unistd.h>. It always fails with Clang 16 and GCC 14 and other compilers which do not support implicit function declarations.
Related to: