Make sure LocalFile::lock() works for brand new uploads