StateSetCache: add auto-pruning capability
Fix: MP bug for OSG 3.1.8+