Track Connection ownership.

Connection ownership is somewhat racy: when an HttpURLConnection reads
the last byte of a connection, its ownership is released and given to
the connection pool.

(cherry picked from commit 6c57d76915a7e79cc8b8f743ccd8ecc35889ce7c)