[cmake] clean up threading backend selection
Fixes a typo in the cmake status output on the selected threading backend, and removes code duplication.
Edited by Dennis Gläser
Fixes a typo in the cmake status output on the selected threading backend, and removes code duplication.