Should fix the r2_light and r2_full tests in buildbot

Uses an AsyncResult() to block and wait until the process is running before the rest of the main test thread is executed.