Fix logcontext handling in `timeout_deferred` tests.