Ensure test_restart_returns_once_requests_rejected waits for the
background stop task to reach loop.stop while it is still patched.
This prevents the real loop.stop from firing after the patch context
exits, which could surface as a cleanup error:
RuntimeError: Event loop stopped before Future completed.