The asyncio.new_event_loop() instance is now removed from the NetworkThread
class during shutdown. This enables a NetworkThread instance to be restarted
after being closed. The current NetworkThread class guards against an existing
new_event_loop during initialization.
This is a backport of Core PR17288 [1/7]
https://github.com/bitcoin/bitcoin/pull/17288/commits/ede8b7608e115364b5bb12e7f39d662145733de6