[Bug 970] Intermittent regression tests freeze, possibly due to thread race condition.