Oil Holds Gains above $40 after U.S. Crude Stockpiles Shrink