Prevent race between QSRI and VkImage destruction

... by tracking pending sync fds created during QSRI and waiting
for all pending sync fds during image destruction.

The race is that the host may process a `vkDestroyImage()` from
the VK encoder command stream before processing an earlier
submitted `VIRTIO_GPU_NATIVE_SYNC_VULKAN_QSRI_EXPORT` from the
virtio gpu command stream.

Bug: b/237003428
Test: `cvd start --gpu_mode=gfxstream --enable_gpu_enable=true`
      and repeatedly open and close apps quickly.
Change-Id: Iaa5c3a480958ce05f57362ce98d8dde9e048e4ed
1 file changed