ck_semaphore: syntax fixes.
ck_eventcounter: adding primitive and regression test.