compositor: verify Present extension's capability before using
Current X servers expose Present extension regardless of the DDX supporting it or not, because the Present extension defines a interface to verify its capability, and the capability returned could be None.
Verify the capability being not None before using Present for vblank.
Signed-off-by: Icenowy Zheng uwu@icenowy.me