fix storage domain detection and refactoring

- not the storage domain has an unique key generated by the first proces that
use the storage. Other process that use the same storage will get the name and unique key
as well. Other process that will use the same name but will initialize another storage
will have a different uniwue key. In this case the domain initialization will fails.