philips/focaccia — pull request #7 by jonboulle (2014-04-28 22:15:02+00:00)
Title: fix(lock): fix bug and improve semaphore test coverage

Calling Unlock() on a Lock that did not hold the semaphore would panic when
the semaphore had >0 (other) holders. Added test coverage for all Semaphore
actions.