Thread: Remove the last Handle-based interfaces from Thread.cpp
Thread: Remove orphan function declaration
Thread: Remove some redundant functions
Thread: Mark file-private functions as static