set ffmpeg mutex to NULL on destruction.
Merge pull request #3271 from mgeorg:reset_ffmpeg_mutex