restore: open cores for each thread early and store them at current->core
restore: open cores for each thread early and store them at current->core

We need to open cores for each thread early, because we'll need them to
prepare signals later.

Signed-off-by: Ruslan Kuprieiev <f6538312ce47017d734b1357aabc970ebf896e32@gmail.com>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

KKoukiou/criu-remote,kawamuray/criu,tych0/criu,biddyweb/criu,gonkulator/criu,gonkulator/criu,marcosnils/criu,rentzsch/criu,tych0/criu,rentzsch/criu,efiop/criu,gablg1/criu,eabatalov/criu,gablg1/criu,marcosnils/criu,gonkulator/criu,fbocharov/criu,AuthenticEshkinKot/criu,KKoukiou/criu-remote,LK4D4/criu,ldu4/criu,efiop/criu,ldu4/criu,gablg1/criu,biddyweb/criu,biddyweb/criu,tych0/criu,rentzsch/criu,gonkulator/criu,sdgdsffdsfff/criu,LK4D4/criu,marcosnils/criu,wtf42/criu,gablg1/criu,wtf42/criu,tych0/criu,ldu4/criu,AuthenticEshkinKot/criu,gablg1/criu,AuthenticEshkinKot/criu,fbocharov/criu,svloyso/criu,AuthenticEshkinKot/criu,efiop/criu,gonkulator/criu,KKoukiou/criu-remote,biddyweb/criu,sdgdsffdsfff/criu,eabatalov/criu,biddyweb/criu,rentzsch/criu,wtf42/criu,tych0/criu,svloyso/criu,fbocharov/criu,kawamuray/criu,kawamuray/criu,eabatalov/criu,fbocharov/criu,sdgdsffdsfff/criu,eabatalov/criu,gablg1/criu,ldu4/criu,efiop/criu,svloyso/criu,sdgdsffdsfff/criu,kawamuray/criu,fbocharov/criu,rentzsch/criu,gonkulator/criu,marcosnils/criu,biddyweb/criu,svloyso/criu,eabatalov/criu,sdgdsffdsfff/criu,svloyso/criu,kawamuray/criu,fbocharov/criu,marcosnils/criu,AuthenticEshkinKot/criu,tych0/criu,svloyso/criu,kawamuray/criu,LK4D4/criu,sdgdsffdsfff/criu,KKoukiou/criu-remote,LK4D4/criu,ldu4/criu,ldu4/criu,LK4D4/criu,wtf42/criu,LK4D4/criu,marcosnils/criu,wtf42/criu,KKoukiou/criu-remote,efiop/criu,wtf42/criu,AuthenticEshkinKot/criu,KKoukiou/criu-remote,eabatalov/criu,rentzsch/criu,efiop/criu