Add a test for sceKernelRotateThreadReadyQueue()

Also some minor cleanup.

-[Unknown]