vulkan/gpu_tex: properly time layout transitions with external dependencies
This fixes a bug where the layout transition would happen too early when commands were scheduled with external dependencies tied to specific execution stages, but the layout transitions could happen as soon as the command buffer started execution.
Fixes: #333