Fix raciness in waitid test.