This patch adds the functionality to process with a lambda the resources
obtained and returned by the resource managers in the plugins. These
processing lambdas are empty for the moment. The idea is to process them
while the resource manager mutex is acquired.
This patch can be useful to implement D154523
Depends on D155629
Do we need this one now?