[Spark-4060] [MLlib] exposing special rdd functions to the public

I think it is necessary to replace `private[mllib]` with `@DeveloperApi`. Otherwise, the methods under `RDDFunctions` won't show up in the generated doc.