Add function addKernelSynchronizaton

By using this function we can add synchronization statement to kernel function.