Move -num-threads tests to single function
Move -num-threads tests to single function

This is just an organizational change to keep all the tests for
`-num-threads` behavior in one place.

apple/swift-driver,apple/swift-driver,apple/swift-driver,apple/swift-driver