sys: fix thread_print_all

Was broken after #1815 got merged.