With Brock Purdy’s contract extension on the horizon, the 49ers’ ability to retain high-priced free agents will get tricky.