Semaphore for Erlang