[JENKINS-24763] Prevent thread starvation in OldDataMonitor by reducing scope of synchronization

Supercedes #1399 
`data.keySet().removeAll(removed)` probably suffices, but not sure.