Synchronization enhancement of indirectly coupled oscillators via periodic modulation in an optomechanical system