matroska: move LFG state from muxer context to local variable