Add a script that is used to deflake inherently flaky tsan tests.
It is invoked from lit tests as:
$(dirname %s)/deflake.bash %run %t %s
The script runs the target program up to 10 times,
until it produces the necessary output.
If/when it LGTM, I will add it to other tests as well.
What about the %run argument? If it is expanded to anything non-empty, this script won't work.