Fix race condition issue in storage/display info query and event listening

BUG=https://github.com/sysapps/device-capabilities/issues/14