Fix a potential race condition with cuesheets (that hit every time in an archos test), plus a slight optimisation.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12524 a1c6a512-1295-4272-9138-f99709370657
1 file changed