Media Library: Improved asset editing stability

Fixes asset editing issues by improving mutation handling and state management, resolving character duplication, array key conflicts, and concurrent editing inconsistencies.