drd/tests/std_thread*: Add a workaround for an Ubuntu 14.04 gcc bug

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