Semaphore with permit id?

Well, there is now. See https://github.com/NittanyLion/Smartphores.jl