util: Set thread name via pthreads in set_subprogram_name().