Ensure occActive called after device enabled

I noticed that the power cap bounds was not getting updated. This
was caused because the device.master() call was made before setting the
occActive flag.

The device object now prevents the device from triggering sysfs reads
if the occActive flag is not set.
This change will set occActive right after enabling the device.

Also prevent extra calls to checkAllActiveSensors by only setting the
waitingForAll flag once.

Change-Id: If19771e53b64dd1d5e27e7ae153bd56e0e070aff
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
2 files changed