[AMDGPU] Read TTMP6 only if clusters are enabled (#244508)
The hardware only initializes TTMP6 when clusters are enabled, but
`llvm.amdgcn.cluster.workgroup.{id,max.id}.{x,y,z}` and
`llvm.amdgcn.cluster.workgroup.max.flat.id` read it without a check, so
they could potentially return stale values without clusters. The
programming model treats a launch without clusters as an implicit 1x1x1
cluster, so all of these values are 0.
Fixes LCOMPILER-3241.
This PR was assisted by AI but I reviewed all the changes.