core: DetachStorageDomain - adding lock of the domain id

Change-Id: I4ee8cd4b64393d195fe45349f49996e45ce09f0f
Signed-off-by: Liron Aravot <laravot@redhat.com>