Update ShadowLayerUtilsGralloc.cpp

reverted to old method of checking whether we need to enable the gralloc work around for sgx gpus, as it turns out i don't infact know c++ and the previous method fails to work