Slight cleanup

It is more efficient and readable if we do nothing unless we're not locked.