[composer] Prevent renaming to duplicate name in manager (fix #11051)