Fix race between concurrent runs of rdmd