pthreads: fix `NativePthread::equal`