I needed this for my application and modified the unix semaphore implementation to support this. Are you interested in adding more widespread support for this? I can create a pull request for you to look at if you want.