Fix parallelism framework tests that used different numbers of threads and processes for sequential calls in the same test. Also, use the same code path for multiple processes regardless of the number of threads, making the framework easier to reason about.