Cluster formation in nuclear reactions from mean-field inhomogeneities