Move LibraryHash/track_locations cleanup code from ~LibraryScanner to TrackDAO::finish.