lavc: replace and deprecate the lock manager