backport SVN commit 938158 by mlaurent:
backport SVN commit 938158 by mlaurent:

Don't rename when it's lock

svn path=/branches/KDE/4.2/kdepim/; revision=939681

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi