net: handle single-line non-\n-terminated files correctly in readLine

Fixes issue 6646.

R=rsc, bradfitz
CC=golang-dev
https://codereview.appspot.com/15960047

Committer: Russ Cox <rsc@golang.org>