GLib's GRecMutex will allocate another heap memory for CRITICAL_SECTION struct and g_rec_mutex_lock/g_rec_mutex_unlock use WIN32 APIs actually. We don't need such intermediate function calls and redundant heap allocation. Just call WIN32 APIs directly. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2845>