[win] Fix task cancel bug in data transfer.