Bug 982146 - Clean up SyncRunnable wait code, r=bsmedberg.