Lock codec so even though we flag "frame level threading", we only decode one frame after the other.