Keep the GUI in sync with the actual metadata saved for tracks

This just makes sure to update the track.metadata to match the current
state whenever a file is linked/unlinked, so that the GUI is consistant
with the operations that will actually be performed.