[1.7.x] Fixed #23014: Renaming not atomic with unique together