Update the swept handles statistic any time we close the underlying handle, regardless of whether a session still references the data handle.

reds #1460, #1466