Multiplexed control of spin quantum memories in a photonic circuit