JCAM barrier benchmark - causes bugs on more than 1 thread though.