AVOptions: add av_opt_free convenience function.