Control of Photoswitching Kinetics with Strong Light-Matter Coupling in a Cavity.