Fix ref update perf- don't call isNameConflicting for an existing ref

For batch ref updates isNameConflicting() is a performance killer.

It performs a *full* loose object scan for each ref update - very slow.

Change-Id: I890f50c82cf05591522bd5acc1c08cd242a3e55d