Solr: clear() won’t call optimize when commit=False

An optimize will trigger a commit implicitly so we’ll avoid
calling it when the user has requested not to commit