signOut cleared the session cookie before calling /api/auth/logout, so the
logout went without the cookie that names the session to drop, and the
server session lived on until it expired. The app still shows signed-out at
once; the logout now goes first with the cookie, bounded to 5 s and run in
the application scope so leaving Settings can't cancel it, and the cookie is
cleared after it, whether it worked or not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>