Forecaddies should definitely be gone. Tracking-chip enabled golf balls will make them obsolete.
Much easier to have a few drones floating over the course watching all the golfers and their balls in flight on the course simultaneously. Your smartphone (or whatever replaces it in 2040) will be able to direct you to the ball. Or tell you it is in the water, OB, etc.
Adding a tracking chip to the ball able to withstand impacts and be able to communicate at large enough distances to be useful would be a lot more expensive. I'm sure Titleist will try to sell us on it at some point, but the drone solution is much easier. Hell, it could be done TODAY though you might need a drone or two per hole due to limitations in imaging technology to insure it can follow the balls (it is easy to follow in through the air, harder when it bounces, deflects off trees, etc.)
I'd be surprised if this isn't something fairly common by 2025, let alone 2040, assuming the FAA doesn't impose too many restrictions on the commercial use of drones.