IBM's weak preliminary Q2 numbers show how the AI infrastructure boom is changing enterprise technology spending patterns.