Generic initial ideals and fibre products