[Vulkan] Fix deletion of fences on failed submits.

When a queue submit fails because of a device lost, we still need
to wait for the fence to be finished before deleting it.

Bug: b/359822580
Change-Id: I781dde6c1987dd11626d34ef80c1d332eab3783c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/896463
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Nicolette Prevost <nicolettep@google.com>
2 files changed