lisa.analysis.tasks: Fix TaskAnalysis.plot_task_activation()
Add nonlocal declaration since the variable is assigned to in a closure, while refering to a name bound in an outer scope.
Add nonlocal declaration since the variable is assigned to in a closure, while refering to a name bound in an outer scope.