Return correct errors in sceKernelDeleteThread().

And also, don't reschedule in sceKernelTerminateDeleteThread(), per tests.
Merge pull request #2267 from unknownbrackets/thread-funcs

Return correct errors in sceKernelDeleteThread()