Task context when running a plan

This allowed to add a feature, the possibility to change the default
locks for a specific parts of the plan