http: fix test-http-upgrade-client2.js

The test was doing socket operations on the request, rather than the
actual socket passed in the `upgrade` event.

It also didn't flush incoming data.