egl: check if a window/pixmap is already used on surface creation