Realse lock before copy files