websocket: Fix race in rough-close test

There's a race in the /websocket/rough-close test that happens intermittently.