Xi: lock the input thread for any pointer barrier list manipulation

The input thread checks the barriers for pointer positioning, swapping the
list out from underneath is considered impolite.

Reported-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2 jobs for wip/pointer-barrier-locks in 1 minute and 53 seconds (queued for 1 minute and 48 seconds)
Status Name Job ID Coverage
  Docker Image
passed debian-testing #115439


  Build And Test
passed build-and-test #115440