system/set_threadname: fix