Moment Closure By Entropy Maximization For Stochastic Oscillators And Sparse Control Of Modular Networks