handle storage pool permissions

- add permission block to XML

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
fix error on freed pool

Signed-off-by: Hiroshi Miura <miurahr@linux.com>