autotests: Make SceneQPainterTest more robust to BufferInterface changes
At the moment, the test depends on the implicit client connection flush in BufferInterface::unref(). It will be highly desirable if that connection flush is gone as it allows us batching wayland events better. It also allows us remove a system call from a hot path.