kernel: add K_USER flag and _is_thread_user()

Indicates that the thread is configured to run in user mode.
Delete stub function in userspace.c

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