Add missing calls to svn_stream_close().