kernel/workqueue.c: avoid array subscript above array boundaries
Signed-off-by: pjoyrom <pjoyrom@gmail.com>