[vulkan] Refactor QueryPool (#80729)
Part of a refactor of the Vulkan codebase.
Reworks the QueryPool class which Sangbaek introduced which can help us collect GPU timestamps.
Differential Revision: [D37315037](https://our.internmc.facebook.com/intern/diff/D37315037/)
**NOTE FOR REVIEWERS**: This PR has internal Facebook specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D37315037/)!
Pull Request resolved: https://github.com/pytorch/pytorch/pull/80729
Approved by: https://github.com/kimishpatel