dump: factor out cleanup code into separate functions
dump: factor out cleanup code into separate functions

This moves cleanup code from cr_dump_tasks()/cr_pre_dump_tasks()
into separte functions. No functional changes here.

Signed-off-by: Andrey Ryabinin <1db0f9e76dd8a9115570382660c6cd919b5a95b9@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

AuthenticEshkinKot/criu,wtf42/criu,efiop/criu,tych0/criu,efiop/criu,AuthenticEshkinKot/criu,tych0/criu,eabatalov/criu,tych0/criu,KKoukiou/criu-remote,ldu4/criu,ldu4/criu,efiop/criu,AuthenticEshkinKot/criu,AuthenticEshkinKot/criu,KKoukiou/criu-remote,KKoukiou/criu-remote,ldu4/criu,eabatalov/criu,efiop/criu,tych0/criu,eabatalov/criu,efiop/criu,KKoukiou/criu-remote,ldu4/criu,AuthenticEshkinKot/criu,eabatalov/criu,eabatalov/criu,wtf42/criu,efiop/criu,KKoukiou/criu-remote,wtf42/criu,AuthenticEshkinKot/criu,tych0/criu,eabatalov/criu,KKoukiou/criu-remote,wtf42/criu,wtf42/criu,ldu4/criu,wtf42/criu,tych0/criu,ldu4/criu