Fix clCreateKernel with multiple devices

When using multiple devices (POCL_DEVICES="pthread pthread" for
example), clCreateKernel fails with CL_INVALID_PROGRAM_EXECUTABLE.

program.llvm_ir is indexed by device->dev_id.