`BKE_library_id_can_use_filter_id` would not handle properly cases where the ID is a liboverride - it's hierarchy root pointer can point back to virtually any kind of ID (although typically a Collection or Object). This was breaking liboverride resync process in some rare cases, by failing to remap the 'hierarchy root' pointer of some liboverrides.