Fix concurrent bugs in DiskManager.