Is it possible to make all work-items (from different work-groups) to access a specific global variable consistently and write to it in a synchronized way?