Implement reset_context_after_deferred
Implement reset_context_after_deferred

to correctly reset the context when we fire off a deferred we aren't going to
wait for.

matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse