Fixed issue with warp synchronization in foldAll kernel.