Switchable spin-photon coupling with hole spins in single-quantum dots