fix: make sure file exist in find_thread_path_by_id_str_in_subdir
#10618
+36
−8
find_thread_path_by_id_str_in_subdir
#10618