Fix based on piglit OpenCL falied case (cl-api-compile-program).
Fix based on piglit OpenCL falied case (cl-api-compile-program).

1. Return the expected error code.
2. Don't destroy cl_program object after comile error because it
may be used still in the future.

Signed-off-by: Yan Wang <8ca54580088a7ffe1dd243d1c16c6d1f04463d55@linux.intel.com>
Reviewed-by: Zhigang Gong <e04a7b9b70b1e4c6318cf117dcd1a9056e14b97a@linux.intel.com>

zhenyw/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,wdv4758h/beignet,wdv4758h/beignet,zhenyw/beignet,zhenyw/beignet,freedesktop-unofficial-mirror/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,zhenyw/beignet,freedesktop-unofficial-mirror/beignet,wdv4758h/beignet,zhenyw/beignet