EUCA-9357: prevent race condition on image registration