Reverting this because the previous way is less bug-prone and we want to stick with having to pass resource_id
in the controllers.
Revert "moving logic to be able to lock all resources of given type in dispatch instead of controllers"

This reverts commit 413a847ac7d9ad7dbe7ccdb5fcc3e1e2e807ecac.