Guard against more than *2 unlocks pending
When more than *2 the maximum number of unlocks are asked for while increasing the space available the index == new size is valid and would give an out of bounds access, and the remaining unlocks would deadlock. Handle that.