Gottfried IV., Niederlothringen, Herzog