vulkan/wsi: move swapchain create/destroy to common code