repair search lucene before installing

on the way to fixing search lucene migrations, see discussion in https://github.com/owncloud/core/issues/10205