Handle older versions of pthreads without mutexattrs