Get locking correct for new files.