glthread: fall back if a param size is non-zero and a pointer param is NULL