modesetting: Remove few common functions from ms namespace

A lot of that code is the same as in xf86-amdgpu and xf86-nouveau drivers. By removing that functions from
ms namespace we can move that code to common implementation.

Signed-off-by: Łukasz Spintzyk <lukasz.spintzyk@synaptics.com>
4 jobs for sync_present_to_slave_outputs in 12 minutes and 7 seconds (queued for 1 second)
Status Job ID Name Coverage
  Docker Image
passed #8938384
debian-buster

00:05:32

 
  Build And Test
passed #8938385
autotools

00:06:34

passed #8938386
meson

00:03:33

passed #8938387
meson-noglamor

00:02:58