Fix cleanup of swapchain images in the shared case
am: 31b85c2326

Change-Id: Iea63a324be09030e9cf25362472d74061d071225