[win32] Add fallback implementations for gatomic.c on mingw32