r9584: Fix a race condition in Samba 3. If two files are opened simultaneously with