[JENKINS-48604] Do not downgrade plugins that are dependencies of detached plugins when upgrading Jenkins