OCL: memory corruption check

**For development only.**
Mode is enabled via `#define CHECK_MEMORY_CORRUPTION`