Avoid changing PystilWebSocket.waiters set during iteration