A read/write lock for concurrent programming in JavaScript.