Kernel: Remove Thread::wait_objects_index and use wait_objects to hold all the objects that a thread is waiting on.