restore: allocate pstree items from a shared pool (v2)
restore: allocate pstree items from a shared pool (v2)

A pstree item will contain pid and state. Both these properties will be
determined after creating processes and will be used from the
controlling proces.

v2: fix the error path
Signed-off-by: Andrey Vagin <74c05afa918858348d6db8037d82fa8124870113@openvz.org>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

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