[SYCL] Skip processKernel for declarations in LocalAccessorToSharedMemory
ed022d93b2fb start to enable partitions in LTO.
So the input IR to LocalAccessorToSharedMemory might contains
delarations only, we should skip such functions.
Or else we will get into assertsions or segv when getting entryblock.