New helpers for writing concurrency tests.