A locking library like mutexify, mutex-js, await-lock, and many more, but with more flexibility in how to use it to be both sturdier and very quick.
Add a description, image, and links to the mutex-synchronisation topic page so that developers can more easily learn about it.