add RNG test
pthread: fix potential double-free of Thread->r; fix premature destroycond return if waiters still blocked
return pass/fail status from RNG test