Don't capture the execution context when registering cancellation tokens.

#2167