Make a reactor test more resilient to races