Natural gas steadies after 4 losing sessions as August contract expires