Aging baby boomers have begun to affect the occupancy of another of America’s institutions—prisons,—and a few states are researching ways to partner with private nursing homes to care for them.