fix file locking on backup creation