Retry  when doing an atomic rename

## Problem

If the metadata lock is taken a LHM will fail with   lock wait timeout,

## Solution

Sleep one second and retry until we succeed

@arthurnn  @sroysen 

~~Should we have a max number of retries?~~ 
Yes and done.


Should the wait be more than 1 sec?