c/main: Add thread waiting for vblank events

Co-authored-by: Christoph Haag <christoph.haag@collabora.com>
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
21 jobs for jakob/comp-display-control in 4 minutes and 43 seconds (queued for 1 second)