Remove a task from the task lists. All memory in the tc_MemEntry list is freed and a rescedule is done. It's safe to call RemTask() out of Forbid() or Disable(). This function is one way to get rid of the current task. The other way is to fall through the end of the entry point.