Try disabling GL context sharing with GLX as it's not clear how it works correctly with multiple threads