chimera: fix rename into a file

fix confitions when file is remove into an existing file
as a parent.

Ticket: #8250
Acked-by: Paul Millar
Target: master, 2.8, 2.7, 2.6
Require-book: no
Require-notes: yes
(cherry picked from commit 119ecfe92c1a69925ad31934f7517421e3f74405)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>