kernel: convert most thread APIs to system calls

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
6 files changed