Draft: gatomic: provide in-line atomic operations on Windows

Open Sebastian Dröge requested to merge sdroege/glib:windows-atomics into main

Taken from https://github.com/pexip/glib/commits/main and fixed up a bit so that it hopefully also compiles with mingw.

Merge request reports