Fix for commit ac5ef61. Use a pth_mutex_t when building with libpth