util: Make subprogram_name thread-specific.