vulkan: Win32 fixes
Wrap GCC pragmas with __GNUC__ to fix MSVC warnings.
Replace pthread mutex with mtx_t.
Simplify wsi_common_get_current_time() with os_time_get_nano(), which has a Windows implementation.
Splitting off changes from !6162 (merged).