Stealth dark matter confinement transition and gravitational waves