ws: Avoid test-webserver segfault in mock.