pub fn sys_thread_get_trap_state(target: ObjID) -> Result<u64, TwzError>
Get the Trap State for the thread.