Clean user disabled and enabled resources in prepareForRun transition as required by https://savannah.cern.ch/bugs/?61902