Lock workers with queue instead only on class name