configure: Consolodate some duplicate code.

Combine the x86/x86-64 and stub type selection branches, since the same code
works for either of them.
12 jobs for fix-configure-tls in 2 minutes and 43 seconds (queued for 1 second)