2.31.0.2: (unstable) * gthread.h: Move the deprecation ifdefs to avoid affecting non-deprecated API.