Unlock artifacts when branch is deleted
Summary
We introduced a locking mechanism for artifacts in #16267 (closed). We need to make sure artifacts are unlocked once a branch is deleted to prevent leaving the latest artifact for that ref indefinitely locked.