Synchronize isClosed.

See https://github.com/square/okhttp/issues/151
Merge pull request #41 from JakeWharton/jwilson/sync

Synchronize isClosed.