Fixed waitForResources
Fixed waitForResources

Not sure this is the right fix, but "stUsedResources" just didn't get
updated, therefore blocking the program indefinetely.

SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC