Test scanner and chutney with tpo/core/tor#40337 patch

mr tpo/core/tor!338 (merged). See if that helps to test #40059 (closed), #40051 (closed) and others.