websocket: Fix race in rough-close test

Closes #141.

Signed-off-by: Marius Vollmer <mvollmer@redhat.com>