posix: add semaphore

merge together with https://github.com/RIOT-OS/projects/pull/37