Lock all of Close instead of just conn.stale

Ran across this problem when running another project's test suite with
-race.