Fix a potential deadlock in OutOfDiskSpaceTest