[PATCH v3 2/3] server: Skip inaccessible threads in (get_next_thread).