Fix potential race in volume creation