net: do not re-emit stream errors

fix #7015
stream: use `errorEmitted` from `_writableState`
Merge remote-tracking branch 'upstream/v0.10'

Conflicts:
	lib/_stream_writable.js