Adding an iterator counter to know how many iterators are running at the same time in the task manager. If there are more than one, we shouldn't reset the context variables

Change-Id: I7258adf4b894edbdcb7096781a53523e1f87a05a