Effect of CuO chains ordering on the opening of the spin-gap in YBa2Cu3O6+x