test: add test-http-destroyed-socket-write2

This test verifies that ECONNRESET is raised when writing to an
http request where the server has destroyed the socket.