[runtime] Allow renaming of threadpool threads. Fixes #23206.