added missing memory fences to fall-back implementation of atomic_long