This MR adds a safety proof for the array-based queuing lock.
This will create a new commit in order to revert the existing changes.