prevent race condition in file storage open (bug 861234)