Updated changes to idletimer.cpp to remove all the ifdef logic and a generic gcc sync intrinsic memory barrier in place of glib's atomic_get

Only tested on Windows with mingw64, but should be pretty portable across gcc-supported targets.