glthread: add support for glMemoryObjectParameteriv, glSemaphoreParameterui64v