gthread-posix: fix build against very old Linux headers
See issue #2861 (closed). Even though (hopefully!) few people are actually running kernels this old, some build frameworks use very old kernel headers to try to maximize the portability of their binary artifacts.
This change fixes a test build in the conda-build framework (including running the test suite).
Closes #2861 (closed)
Edited by Philip Withnall