Indonesian authorities have foiled an attempt to smuggle more than 4,000 protected baby turtles worth tens of thousands of dollars to China, customs officials say.