XMDS: attempt at fixing the occasional deadlock error.
XMDS: attempt at fixing the occasional deadlock error.

(cherry picked from commit d1885c97c3c2fa8b5f70940605073baf729b371d)

dasgarner/xibo-cms,xibosignage/xibo-cms,alexharrington/xibo-cms,dasgarner/xibo-cms,alexharrington/xibo-cms,xibosignage/xibo-cms,xibosignage/xibo-cms,dasgarner/xibo-cms,dasgarner/xibo-cms,xibosignage/xibo-cms,xibosignage/xibo-cms,xibosignage/xibo-cms,alexharrington/xibo-cms,dasgarner/xibo-cms,alexharrington/xibo-cms,dasgarner/xibo-cms,alexharrington/xibo-cms