Update libclrpc.c

From the OpenCL spec, pevent can be NULL in all calls. Add NULL check, otherwise a call passing a NULL pevent will cause a seg fault.