Kernel: Implement support for current thread pseudo-handle

This boots a few (mostly Nintendo 1st party) games further.
Merge pull request #316 from yuriks/thread-handle

Kernel: Implement support for current thread pseudo-handle