Regression tests and race conditions

FYI: Please see my comments here: http://reviews.llvm.org/D13802

A few of the regression tests have race conditions and/or timing sensitivities that we should fix.

-Hal