XNAT-2561 (Improvement - Complete): Track in-use thumbnails more robustly.