[FIXED JENKINS-22575] Optinally keep records for deleted builds up to Plot#numBuilds

This implements [JENKINS-22575](https://issues.jenkins-ci.org/browse/JENKINS-22575) allowing users to opt-out from change introduced in [JENKINS-4934](https://issues.jenkins-ci.org/browse/JENKINS-4934).