Revert "Fixed clang build error for libgui"

This reverts commit 114e968482a02b9153d9a236376efb5cd43f4a9a.
libgui: don't use fences if using legacy display