avcodec/options: do a more thorough clean up in avcodec_copy_context()