gpu.c: compute_sync_writes: take into account expansions