Fix issue with halide_release for cuda destroyign context before releasing
resources.

Fix compile error I just introduced into opencl.cpp .