Set thread names.