NAND gate has 2 inputs right... take one of them as control input to the oscillator switch it to logic high and you got a inverter... The circuit continues to work as ring oscillator... when you switch it to logic low the output of it stays logic high and the ring oscillator gets turned off.... problem solved...