moving logic to be able to lock all resources of given type in dispatch instead of controllers