On z/OS, the availability of several POSIX functions depends on the
environment at program start. As a result, we don't know at compile
time if mutexes and multithreading are supported.
The z/OS Language Environment provides a flag CEEEDB_POSIX to check
whether POSIX functions (i.e. the threading api) is enabled. It also
provides a flag CEEEDBMULTITHREAD which is set to true when more than
1 thread is running, which we can use as an alternative in some cases
to get a little extra performance out of single-threaded applications.
Since there are many places we are going to need to check one of these
flags, this PR adds functions for doing that to __threading_support.
Providing a link here would be helpful, if you have one.