dvdplayer: lock the correct section on log flush

The old code locked the codec lock, which is not protecting this structure.