k-means: add n_init argument check

Attempts to address #3842 .
here too.