cgroups: allow to execute fini_cgroups a few times
cgroups: allow to execute fini_cgroups a few times

It is called from prepare_cgroup_sfd() and cr_restore_tasks().

+ criu restore --file-locks --tcp-established --evasive-devices --link-remap --root /var/lib/vz/root/101 --restore-detached --action-script /usr/local/libexec/vzctl/scripts/vps-rst-env -D /vz/dump/Dump.101 -o restore.log -vvvv --pidfile /var/lib/vzctl/vepid/101
*** Error in `criu': double free or corruption (fasttop): 0x00000000006bcd40 ***

Program terminated with signal 6, Aborted.
Missing separate debuginfos, use: debuginfo-install glibc-2.17-20.fc19.x86_64 libgcc-4.8.3-1.fc19.x86_64 protobuf-c-0.15-7.fc19.x86_64
(gdb) bt
 #0  0x00007ffff72179e9 in raise () from /lib64/libc.so.6
 #1  0x00007ffff72190f8 in abort () from /lib64/libc.so.6
 #2  0x00007ffff7257d17 in __libc_message () from /lib64/libc.so.6
 #3  0x00007ffff725f0b8 in _int_free () from /lib64/libc.so.6
 #4  0x0000000000426971 in cr_restore_tasks () at cr-restore.c:1833
 #5  0x0000000000418426 in main (argc=<optimized out>, argv=0x7fffffffeb38, envp=<optimized out>) at crtools.c:479

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

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