No need for container.Lock if rename same name
No need for container.Lock if rename same name

During the renaming of a container, no need to call `container.Lock()`
if `oldName == newName`.

This is a follow-up from #23360 (commit 88d1ee6c112d980a63c625389524047fea32e6d9)

Signed-off-by: Vincent Demeester <87e1f221a672a14a323e57bb65eaea19d3ed3804@sbr.pm>
(cherry picked from commit 7e1ec8d2bd6d1aa77f824a1a4d717a7aa4cc3459)

denverdino/denverdino.github.io,docker-zh/docker.github.io,stainboy/docker,JimGalasyn/docker.github.io,jzwlqx/denverdino.github.io,gdevillele/docker.github.io,LuisBosquez/docker.github.io,joeuo/docker.github.io,joaofnfernandes/docker.github.io,BSWANG/denverdino.github.io,londoncalling/docker.github.io,londoncalling/docker.github.io,jzwlqx/denverdino.github.io,denverdino/denverdino.github.io,docker-zh/docker.github.io,alexisbellido/docker.github.io,troy0820/docker.github.io,aduermael/docker.github.io,stainboy/docker,bdwill/docker.github.io,sanscontext/docker.github.io,bdwill/docker.github.io,bdwill/docker.github.io,JimGalasyn/docker.github.io,medallia/docker,anweiss/docker.github.io,shin-/docker.github.io,alexisbellido/docker.github.io,denverdino/docker.github.io,docker/docker.github.io,docker/docker.github.io,medallia/docker,danix800/docker.github.io,joeuo/docker.github.io,LuisBosquez/docker.github.io,thaJeztah/docker.github.io,shin-/docker.github.io,johnstep/docker.github.io,medallia/docker,alexisbellido/docker.github.io,gdevillele/docker.github.io,denverdino/docker.github.io,danix800/docker.github.io,denverdino/denverdino.github.io,shubheksha/docker.github.io,rillig/docker.github.io,docker-zh/docker.github.io,denverdino/denverdino.github.io,Shopify/docker,thaJeztah/docker.github.io,anweiss/docker.github.io,joaofnfernandes/docker.github.io,JimGalasyn/docker.github.io,johnstep/docker.github.io,rillig/docker.github.io,docker/docker.github.io,BSWANG/denverdino.github.io,menglingwei/denverdino.github.io,sanscontext/docker.github.io,sanscontext/docker.github.io,aduermael/docker.github.io,londoncalling/docker.github.io,denverdino/docker.github.io,anweiss/docker.github.io,menglingwei/denverdino.github.io,gdevillele/docker.github.io,BSWANG/denverdino.github.io,thaJeztah/docker.github.io,JimGalasyn/docker.github.io,menglingwei/denverdino.github.io,menglingwei/denverdino.github.io,joaofnfernandes/docker.github.io,phiroict/docker,aduermael/docker.github.io,phiroict/docker,medallia/docker,londoncalling/docker.github.io,johnstep/docker.github.io,anweiss/docker.github.io,phiroict/docker,shin-/docker.github.io,alexisbellido/docker.github.io,danix800/docker.github.io,troy0820/docker.github.io,denverdino/docker.github.io,phiroict/docker,thaJeztah/docker.github.io,LuisBosquez/docker.github.io,danix800/docker.github.io,gdevillele/docker.github.io,rillig/docker.github.io,denverdino/docker.github.io,docker/docker.github.io,rillig/docker.github.io,joeuo/docker.github.io,joaofnfernandes/docker.github.io,anweiss/docker.github.io,troy0820/docker.github.io,sanscontext/docker.github.io,bdwill/docker.github.io,shin-/docker.github.io,LuisBosquez/docker.github.io,londoncalling/docker.github.io,shubheksha/docker.github.io,stainboy/docker,shin-/docker.github.io,jzwlqx/denverdino.github.io,BSWANG/denverdino.github.io,jzwlqx/denverdino.github.io,aduermael/docker.github.io,menglingwei/denverdino.github.io,docker-zh/docker.github.io,Shopify/docker,gdevillele/docker.github.io,docker-zh/docker.github.io,bdwill/docker.github.io,shubheksha/docker.github.io,phiroict/docker,shubheksha/docker.github.io,joeuo/docker.github.io,sanscontext/docker.github.io,alexisbellido/docker.github.io,shubheksha/docker.github.io,joeuo/docker.github.io,denverdino/denverdino.github.io,BSWANG/denverdino.github.io,JimGalasyn/docker.github.io,joaofnfernandes/docker.github.io,jzwlqx/denverdino.github.io,johnstep/docker.github.io,johnstep/docker.github.io,Shopify/docker,troy0820/docker.github.io,thaJeztah/docker.github.io,LuisBosquez/docker.github.io,docker/docker.github.io