Fix some leaks on LUN creation error.

(cherry picked from commit 53910142305520c16ea5df64e2fe14ab9c9b3623)
(cherry picked from commit dbef2562b82e0a77beb55cb6a23ed2b4a0693e72)