Add regression test for wrench bug where an appdomain unload would race with shutdown and deadlock.