Fix the thread-name facility and associated test on Darwin.  
Patch from Rhys Kidd (rhyskidd@gmail.com).  Fixes #339442.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14622 a5019735-40e9-0310-863c-91ae7b9d1cf9