Issue #2786855 by claudiu.cristea: Don't compute the lock name if not necessary when generating image derivatives