libav lockmgr: set mutex pointer to NULL on destroy