when switching lockgroup, release any existing locks we hold
refactor