backends: X11: Fix double close on exit.

This fixes segfault for multiple window X11 backend.
examples: add X11 multiple windows example.