Use a workaround to compensate for the differences between a non-GUI and GUI event loop with wxOSX. This allows the FS watcher tests to pass (previously it would hang) under OS X without having to move the tests to the test GUI application (where the tests do pass on OS X already, without needing this workaround). See #16969.