drd: Fix a race condition in the pthread_create() intercept.

Avoid that the futex wake call in DRD_(sema_up)() can get invoked after the semaphore has
already been destroyed. This is most likely the real fix for the bug described in the
commit message of r12332.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12346 a5019735-40e9-0310-863c-91ae7b9d1cf9
2 files changed