Fix issue with remote repo update locking.

Issue:	#807
Reported by:	az