vulkan/wsi: fix cleanup when dup() fails