CA-48768: allow late cancellation of vm-import

There was a ten second window where a vm-import could be cancelled, but the operation would ignore the cancellation. Now we check just before completing the operation, and then disable cancellation for the task after the last checkpoint.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>