Added basic semaphore skeleton code
Merge https://github.com/inspuration/citra