libfreerdp-codec: cleanup context state flushing