Do not lock refs when not executing a fetch Locking the local refs is needed only when executing a Git fetch, otherwise keep on using the filtering logic without introducing any local lock. Also remove the recursion in FetchOne.runImpl() and replace with a while/loop for avoiding the nested locking. Change-Id: I57475e3f264efa340765dd357ef6b8bc8e61c284