[cmake] clean up threading backend selection
Fixes a typo in the cmake status output on the selected threading backend, and removes code duplication.
Fixes a typo in the cmake status output on the selected threading backend, and removes code duplication.