arc.c: use curthread,pagethread over curproc,pageproc

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>