[PATCH v4 02/10] server: Skip inaccessible threads in (get_next_thread).