[webgpu][dawn API optimization] reduce number of calls to wgpuDeviceGetQueue (#24313)
### Description
<!-- Describe your changes. -->
This PR is one of a series of changes for optimization of Dawn API
usage. See #24281
Optimizes the usage of wgpuDeviceGetQueue.