The Supreme Court did uphold a patent on a software-controlled rubber-curing machine in 1981, but its ruling emphasized that this was because the patent covered a physical machine that happened to have a software component, rather than claiming a software technique by itself.
The software that locks a smartphone to one carrier is covered by the act, and unlocking a phone is the process of freeing a device so that it can be used with a different wireless carrier.