Javascript utility for providing a semaphore locking mechanism