Fix retain-cycle bug.

See bug-reproducing test 496e9af for more information.

https://github.com/inamiy/SwiftTask/blob/496e9af3caf553a65c4caa2b77bbd258ad11b215/SwiftTaskTests/RetainCycleTests.swift#L228