Add test for sceKernelExtendThreadStack(), sceKernelCancelMutex(), and cleanup

Mainly this just adds some tests for those funcs, but it also cleans up some older tests and adds some checks for previously untested situations that were happening.

-[Unknown]