metadata: Don't use metadata_source_t for temp storage during queries
metadata: Remove locking during I/O

This should make the metadata UI stuff feel a lot more snappy
xmp: Trig end-of-track after first loop

Fixes #2046