Use pthread_equal to compare thread IDs
Use pthread_equal to compare thread IDs

We shouldn't compare pthread_t values directly, because on Windows, pthread_t
is a structure, not a number as on Linux. We can use pthread_equal function to
compare thread IDs instead.

OpenSCAP/openscap,jan-cerny/openscap,OpenSCAP/openscap,redhatrises/openscap,OpenSCAP/openscap,mpreisler/openscap,jan-cerny/openscap,redhatrises/openscap,redhatrises/openscap,redhatrises/openscap,OpenSCAP/openscap,OpenSCAP/openscap,jan-cerny/openscap,mpreisler/openscap,jan-cerny/openscap,mpreisler/openscap,mpreisler/openscap,redhatrises/openscap,jan-cerny/openscap,mpreisler/openscap,mpreisler/openscap,jan-cerny/openscap,OpenSCAP/openscap,redhatrises/openscap