Fix up logcontext handling in (federation) TransactionQueue
Fix up logcontext handling in (federation) TransactionQueue

Avoid using preserve_context_over_function, which has problems with respect to
logcontexts.

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