hw/cxl: Fix local variable shadowing of cap_hdrs