Set curproc very early on the main cpu, removes crit_escaped hack.

Now we're sure to always have a curproc set when we do a
crit_enter/leave.