Properly clears cur_sysc when leaving a core