Created by: Simorfo
Handles the cases where parameter to syscall SYS_SetContextThread is own thread id.
Fixes i#2249