slhc: Fix crash on remote X connection using XQuartz version 2.7.7

This is duplicate of #5841