[MLlib] Use this.type as return type in k-means' builder pattern

to ensure that the return object is itself.