rwlock: fix r313454
The runlock slow path would update wrong variable before restarting the loop, in effect corrupting the state.
Reported by: pho