Kernel: Implement support for current thread pseudo-handle

This boots a few (mostly Nintendo 1st party) games further.
I think the correct term is "forward declaration", not definition.