Fix flakiness in sidebar testReload

Also added CFRunLoopRunWithTimeout() to avoid polling.