MDL-35934 Filemanage: make reference IDs unique for multiple filemanagers