[Scenario] Avoid cycle for nasa/MCT-Plugins#31

Detect cycle when answering getAllModifiedObjects
from ActivityComponent by maintaining a
thread-local set of component IDs already
considered by the method call.