Supply shortages of oxygen for hospitals have plagued many countries, but the U.S. has averted the most dire — partly because the industry figured out new ways to share resources and anticipate needs.