If the read lock is no longer held.
Upgrades the read lock to a write lock. Afterwards the read lock will no longer be held.
Optional
timeout: numberThe optional maximum time to wait, in milliseconds.
A promise that's resolved when the write lock has been acquired. If multiple read locks are already held, the promise will not be resolved until all read locks are released.
If a timeout is given and it expires, the promise will be rejected.
If the read lock is no longer held.
Releases the read lock.