Make avformat_lockmgr() safer by setting mutex pointer NULL.