Superconductivity protected by spin-valley locking in gate-tuned MoS2