A product formula for surgery obstructions