pending_with ran its work on a thread that completed the call by its block
address. A title that cancels the call and begins another on the same block
(zeroed, as a new block is) had the old work finish the new call. The thread
also read the shared state through a raw pointer that cleanup had already
freed when the cancel ended the call, so a result returned after a cancel
was a use-after-free.
The thread now holds an Arc of the state and the call it began with, and
completes that call directly. A call a cancel ended is left alone.
Adds a regression test for the stale completion and a test for the
successful path.
(cherry picked from commit d3fb9dc0df8133003b2777944cfef613f6546bff)