controller: datastore: fix race with deleteInstance and AddInstance
controller: datastore: fix race with deleteInstance and AddInstance

There is a window of opportunity for the tenant cache to be
empty for a tenant that is having instances launched for it
if a start error is received at the right time.  Prevent this
by holding a lock on the tenant cache while refreshing the
cache data and deleting the tenant usage.

Signed-off-by: Kristen Carlson Accardi <047ff8258f0113ece56e5e2fe9e0d987b14c4333@linux.intel.com>

mrkz/ciao,leoswaldo/ciao,ciao-project/ciao,tpepper/ciao,jorgevgut/ciao,erick0z/ciao,kaccardi/ciao,chavafg/ciao,rbradford/ciao,obedmr/ciao,erick0z/ciao,01org/ciao,leoswaldo/ciao,mcastelino/ciao,markdryan/ciao,wcwxyz/ciao,mrkz/ciao,jorgevgut/ciao,mcastelino/ciao,wcwxyz/ciao,matthewrsj/ciao,ciao-project/ciao,mrkz/ciao,01org/ciao,rbradford/ciao,jorgevgut/ciao,matthewrsj/ciao,kaccardi/ciao,erick0z/ciao,matthewrsj/ciao,obedmr/ciao,chavafg/ciao,wcwxyz/ciao,tpepper/ciao,obedmr/ciao,leoswaldo/ciao,tpepper/ciao,markdryan/ciao,mcastelino/ciao