net/http: check for CloseWrite interface, not TCPConn implementation

Fixes Issue 8724

LGTM=adg
R=adg
CC=golang-codereviews
https://codereview.appspot.com/148040043