both `this.requestedContainerCount` and `this.allocatedContainers` have to be inside the synchronized block (I think).