fix for bug PCLOUD-365, prevents double free when current task is cancelled by cancel_all
fix for bug PCLOUD-365, prevents double free when current task is cancelled by cancel_all

pcloudcom/pfs,pcloudcom/pfs,pcloudcom/pfs